Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

[gentoo-user] Non-interactive bash help?

Benjamin Leggett

2008-04-23

Replies:

Author LoginPost Reply
Alright guys, I'm a beginner in need of a little shell help.

What I want to do is make fbrun (the run dialog for fluxbox) aware of
my bashrc. Upon perusing the source, I found that fbrun execs the given
string with $SHELL if set, otherwise /bin/sh is used. My $SHELL is set
to bash so fbrun runs the command with a non-interactive bash shell
(the "-c" option.)

Checking the bash manpage, I found that bash apparently checks the
environment variable $BASH_ENV for an rc file if it's run with the -c
option. I sure that I should probably know this, but where should I set
this variable? I considered dropping something in /etc/env.d, but that
didn't work, and I don't know if that's the right way to do it.

Any help appreciated,

Ben Leggett


--
When in doubt, parenthesize. At the very least it will let some
poor schmuck bounce on the % key in vi.
        -- Larry Wall in the perl man page

Attachment: signature.asc (zipped)
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.