On 10/8/14, 1:17 AM, Linda Walsh wrote: >>> Yeah... where? >> >> Wherever $TMPDIR says to. If $TMPDIR doesn't name a writable directory, >> bash looks for various system definitions (P_tmpdir), finally defaulting >> to /tmp or /var/tmp. > ---- > P_tmpdir? in ENV?
No. P_tmpdir is a #define in stdio.h that holds the full pathname of the compilation environment's preferred temporary directory. > I don't have TMP or TMPDIR in my env during normal runtime > and tmp's were put in /tmp... Then P_tmpdir is probaby "/tmp". > I don't know where they were going > @ boot time, as /tmp and /var/tmp were writeable, but still > TMP/TMPDIR were unset. Did you verify $TMPDIR? >> Please. Your assumptions about what is going on make your conclusions >> shaky at best. > ---- > Um...assumptions were that tmp files weren't getting created > in standard locations of /tmp or /var/tmp for unknown reasons. Interactively > and @ run time, it works fine... it's probably some library bash is linking > with... Since the thing that differs is $TMPDIR, presumably its value when executing in the boot-time environment, you might want to start with looking at that. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/