> On Wed, Oct 31, 2007 at 03:24:22PM -0700, Randy Dunlap wrote:
> > Andreas Mohr wrote:
> > >- the "source" statement most likely needs the ./ prepended, as can be
> > >gathered from e.g.
http://osdir.com/ml/colinux.devel/2005-12/msg00036.html
> >
> > That email isn't very convincing to me.
>
> Actually that place simply was where I found how the
>
> .: 188: .tmpver.eC4856.1: not found
>
> dash error that happened when I replaced the bash-specific "source"
> statement with its "." counterpart could be ""fixed"".
>
> >
http://www.opengroup.org/onlinepubs/009695399/utilities/dot.html just says
> > that
> > if <filename> does not contain a slash, the search PATH shall be used
> > (searched).
> > If you want to prevent that, it's OK to use ./, but at least say that in the
> > patch description, please.
>
> So this part seems to indicate that merely prepending ./ is problematic,
> since ./ implies relative path resolution whereas $TMPFILE.1 could
> theoretically be an absolute path already.
> It would probably be best to add the ./ to mktemp already, to make sure
> we source *exactly* the filename expression we originally mktemp'd.
>
> OTOH prepending ./ to mktemp by default would deny mktemp any
> "search for a temporary-capable directory and create the file there"
> capabilities. Hmm. I should investigate POSIX shell sourcing
> mechanisms more.