The current POSIX spec does not specify any options for dot
If I do something like:
$ echo 'echo .' > /tmp/-foo $ PATH=/tmp "$shell" -c '. -foo'
then the result is varied between shells:
ksh88, Bourne shell, schily sh, schily osh, heirloom sh work well.
poshdon't. Changing the command to
. -- -fooworks in these shells.
zsh is the only shell that works with both cases.
So how can I make
. filename work reliably in Bourne-like or POSIX compliant shells?