martin f krafft wrote: > also sprach Bob Proulx <[EMAIL PROTECTED]> [2004.06.01.0305 +0200]: > > thought. The first user who put '. /etc/bash_completion' into > > their $HOME/.profile (read by bash at login) broke things because > > that is not /bin/sh shell syntax in there. So just noting one > > type of failure mechanism. > > you mean 'source /etc/bash_completion'? I think '. /etc...' is > /bin/sh. source is bashism. At least that's what lintian says...
Traditional /bin/sh Bourne and compatible shells use '. file' to source files. /bin/csh and compatible shells use 'source file' to source files. Bash is a combination and will accept either syntax. So lintian is correct to identify that as a bashism. But the problem is not the syntax of the '. /etc/bash_completion' but rather the contents of /etc/bash_completion which is bash specific. If you try load it into /bin/sh (even one linked to /bin/bash) then it will have errors. Bob
pgp55oSgaXhfY.pgp
Description: PGP signature