'source' and '.' is two names of one builtin.
As reffered in bash(1):
       source filename [arguments]
              .... If filename does not contain a slash, file
              names in PATH are used to find the  directory  containing  file-
              name.   The  file  searched  for in PATH need not be executable.

But we have
[EMAIL PROTECTED]:~$ ls -l `which file`
-rwxr-xr-x  1 root root 10088 2004-12-06 12:55 /usr/bin/file

This error message is produced with:
[EMAIL PROTECTED]:~$ . `which file`
bash: ELF: command not found

As result there are two bugs:
1) source builtin must produce better error messages ( try to start
'bash /usr/bin/file', its message is better )
2) source builtin does not work correctly with search of
non-executable files in $PATH

Thanks.

Reply via email to