tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Problem with bash and su -c
@ 1998-11-19  6:57 alf
  0 siblings, 0 replies; only message in thread
From: alf @ 1998-11-19  6:57 UTC (permalink / raw)
  To: tru64-unix-managers


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-19  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-19  6:57 Problem with bash and su -c alf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox