|
From: Bart V. A. <bar...@gm...> - 2009-01-07 07:15:02
|
On Wed, Jan 7, 2009 at 7:23 AM, Nicholas Nethercote <n.n...@gm...> wrote: > On a related topic, the 'nightly' script uses the 'source' command to > source another file. > This is fine on bash, tcsh, csh, zsh. But sh, dash and ksh use '.'. > One possibility is to change the script to use #!/bin/bash instead of > #!/bin/sh -- Bart, would that be ok for your Georgia tech machines > that use tcsh? Or is there another way to do this? My personal preference is to stick to /bin/sh, and to use '.' instead of 'source'. All POSIX systems have /bin/sh, but there is no guarantee that /bin/bash is present. If I remember correctly on Ubuntu systems bash is not in the default install. Same on AIX. And on some Linux systems the bash path is /usr/bin/bash instead of /bin/bash. Bart. |