On 22-Dec-06 cl@isbd.net wrote:
[...] I either need to change things so that I don't use BASH_ENV to run the .bashrc (I need to run it for non-login shells but not for non-interactive shells) or I need to remove that offending cd.
I think I'd remove that offending cd! Its presence embodies an assumption that every such script needs to be run in /home/chris, which as you've clearly demonstrated can be inappropriate. However, that could involve you in some tedious (and error-prone) housekeeping. If some (most?) of your scripts require a particular directory, then after removing cd /home/chris from the .bashrc you'd need to put it explicitly into every script which depends on it. Cheers, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 22-Dec-06 Time: 11:17:38 ------------------------------ XFMail ------------------------------