From: alf () northpower ! com ! au
To: tru64-unix-managers
Subject: Problem with bash and su -c
Date: Thu, 19 Nov 1998 06:57:17 +0000 [thread overview]
Message-ID: <96078728412031.tru64-unix-managers.marc@archive.invalid> (raw)
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.
reply other threads:[~1998-11-19 6:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox