Problem with bash and su -c

From: <alf_at_northpower.com.au>
Date: Thu, 19 Nov 1998 16:57:17 +1000

Hi all, I have a problem with bash (GNU bash, version 2.02.1(1)-release
(alphaev56-dec-osf4.0d))
on DU4.0D.

What happens is when I use

 su - username -c "env"

the .profile is not being read (hence enviroment variables aren't set up) .
This worked fine under DU 4.0B
but has stopped working under the new version (with patch set 2).
Normal sh works fine.

This bash is the latest off DEC's web site...

I can get around this by doing the following

su - username -c ". .profile;env"

but this is a pain (I have a few scripts which I would have to change).

Thanks...


Alf.
Received on Thu Nov 19 1998 - 05:57:44 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT