procmail
[Top] [All Lists]

RE: INCLUDERC

2004-03-14 09:10:22


From: Michelle Konzack
Sent: Sunday, March 14, 2004 2:33 AM
[...]

Am 2004-03-13 02:12:55, schrieb Robert Allerstorfer:
On Sat, 13 Mar 2004, 01:53 GMT+01 Dallman Ross wrote:

Question: what shell do you run your .procmailrc under

SHELL = /bin/sh

On Debian /bin/bash

does that shell have a built-in test routine?

Under the shell coming with RHL 6.2, I guess yes because 'which test'
does not return a path.

Under Debian WOODY it returns

/usr/bin/test

Under RH 9, running 'which' under bash, won't tell you whether a
particular command is built in or not, consider the following:

$ which sh
/bin/sh
$ ls -l /bin/sh
lrwxrwxrwx    1 root     root            4 Aug 26  2003 /bin/sh -> bash
$ which test
/usr/bin/test
$ (PATH=;export PATH;test x;echo $?)
0
$ (PATH=;export PATH;ls) 
sh: ls: No such file or directory

Above, note that 'sh' is a link to 'bash', so they're one and the same.

by setting PATH to null, we remove the search path setting; yet,
"test" and "echo" still work. As a cross-check, "ls" does not, because
it is not built into bash.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>