On Tue, Dec 3, 2013 at 5:19 PM, Glenn Fowler <glenn.s.fow...@gmail.com> wrote: > i don't really care for the utility of -p but it seems to be working as > advertised > try something like: mktemp myprefix "$PWD"
ksh -c 'builtin mktemp ; touch x1 ; cd -@ x1 ; mktemp myprefix "$PWD" ; :' /tmp/myprejFqre.FAL > or mktemp "" "$PWD" does not work either > > mktemp --?p > -p, --default=directory > Use directory if the TMPDIR environment variable is not > defined. Implies --tmp. > > gnu man mktemp > -p DIR use DIR as a prefix; implies -t [deprecated] > > -t interpret TEMPLATE as a single file name component, relative > to a directory: $TMPDIR, if set; else the > directory specified via -p; else /tmp [deprecated] > What I wish to archive is to get a temporary file in the O_XATTR dir so that the temp file disappears when I remove the underlying parent file. And I am confused: Why does this not work? I'd expect a temporary file in /dev/file/xattr@/home/stoe/x1//@//, but instead always get one in /tmp: env - /bin/ksh -x -c 'builtin mktemp ; touch x1 ; cd -@ x1 ; TMPDIR="$PWD" ; mktemp "" "$PWD" ; :' + builtin mktemp + touch x1 + cd -@ x1 + TMPDIR=/dev/file/xattr@/home/stoe/x1//@// + mktemp '' /dev/file/xattr@/home/stoe/x1//@// /tmp/8nR0snQsJI.JID + : env - /bin/ksh -x -c 'builtin mktemp ; touch x1 ; cd -@ x1 ; TMPDIR="$PWD" ; mktemp ; :' + builtin mktemp + touch x1 + cd -@ x1 + TMPDIR=/dev/file/xattr@/home/stoe/x1//@// + mktemp /tmp/tmp5Sy9yoF.syY + : Simon _______________________________________________ ast-developers mailing list ast-developers@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-developers