F11: Bug in sh-4.0 source build-in command

Dario Lesca d.lesca at solinos.it
Fri Aug 7 15:09:50 UTC 2009


Il giorno lun, 03/08/2009 alle 20.55 +0200, Michal Schmidt ha scritto:
> Not a bug. You're running bash in POSIX mode (probably you ran "sh").
> In POSIX mode the current directory is not searched by the source
> command. This is documented in the manpage.

IMHO, this is a Bug.

"source: usage: source filename [arguments]"

The command "source" take a "file" (-f, 644) and not a "executable" (-x,
755), like do "ls fil", "cat file", "sh file, "awk file", and many other
command.

So, if I run "source file", source must use "file", like do other
command.

-- 
Dario Lesca <d.lesca at solinos.it>




More information about the devel mailing list