Re: .bashrc not executed

2003-06-13 Thread Harry Putnam
"Reuben D. Budiardja" <[EMAIL PROTECTED]> writes: > However, I forgot to copy some files from the old home before I deleted it, > including .bashrc. No problem, I though, I just copied it from my other > machine. But then whenever I log in, the /home/rdonald/.ba

Re: .bashrc not executed

2003-06-13 Thread Jeff Kinz
ald there. > > However, I forgot to copy some files from the old home before I deleted it, > including .bashrc. No problem, I though, I just copied it from my other > machine. But then whenever I log in, the /home/rdonald/.bashrc file does not > get executed. I know this because I c

Re: .bashrc not executed

2003-06-13 Thread davidgn
Quoting "Reuben D. Budiardja" <[EMAIL PROTECTED]>: when you 'log in', it is not .bashrc which gets executed, but .bash_profile .bashrc is executed when you open an xterm (or some other term emulator), when you `su` or in some other instances, as when you telnet or ss

Re: .bashrc not executed

2003-06-13 Thread John P Verel
e/rdonald there. > > However, I forgot to copy some files from the old home before I deleted it, > including .bashrc. No problem, I though, I just copied it from my other > machine. But then whenever I log in, the /home/rdonald/.bashrc file does not > get executed. I know this because I cu

.bashrc not executed

2003-06-13 Thread Reuben D. Budiardja
it, including .bashrc. No problem, I though, I just copied it from my other machine. But then whenever I log in, the /home/rdonald/.bashrc file does not get executed. I know this because I customize my prompt there, and I defined some aliases. If after log in, I type 'bash' again, t

Re: return of the son of .bashrc revisited again

2002-08-26 Thread Hal Burgiss
On Mon, Aug 26, 2002 at 09:23:56PM -0400, Jim wrote: > new terminal window. I will try your trick, but I still do not > understand why when I put the alias and set the prompt in the > ~/.bashrc file it does not work, especially since a few here have > posted that it works f

Re: Can't get .bashrc to work

2002-08-26 Thread Hal Burgiss
On Mon, Aug 26, 2002 at 11:04:16AM -0700, Samuel Flory wrote: > Try putting the alias in .bash_profile. The .bashrc file doesn't get > source when you login. It does if you do: [ -f ~/.bashrc ] && . ~/.bashrc from ~/.bash_profile. -- Hal Burgiss -- redha

Re: .bashrc still broke

2002-08-26 Thread Harry Putnam
Jim <[EMAIL PROTECTED]> writes: > Hal wrote: > > >> > Hi all.I have added some lines to my .bashrc in >> > an attempt to make an alias and change my prompt. Though >> > I completely log out and back in, the changes do not take >> &g

return of the son of .bashrc revisited again

2002-08-26 Thread Jim
If I might qualify this a bit, and based on my understanding .bash_profile is sourced for interactive login shells only (or other shell started with --login option). .bashrc is not sourced automatically in such situations (according to my reading of the man page anyway). But is usually

Re: .bashrc still broke

2002-08-26 Thread Hal Burgiss
On Mon, Aug 26, 2002 at 10:29:40AM -0700, Gordon Messmer wrote: > On Mon, 2002-08-26 at 10:01, Robert P. J. Day wrote: > > > > IMHO, setting the alias should go in your ~/.bashrc, while setting > > the command line prompt should go in ~/.bash_profile. > > Anythi

Re: Can't get .bashrc to work

2002-08-26 Thread Martin Mewes
Hi, Am Montag, 26. August 2002 20:04 schrieb Samuel Flory: > /etc/profile contains system wide settings. Better to put personal system wide stuff into /etc/profile.local. At the end of /etc/profile you just type "source /etc/profile.local" and this file will be sourced whenever you login :-)

Re: Can't get .bashrc to work

2002-08-26 Thread Samuel Flory
Try putting the alias in .bash_profile. The .bashrc file doesn't get source when you login. On Sun, 2002-08-25 at 19:37, James K Kroger wrote: > Hi all.I have added some lines to my .bashrc in > an attempt to make an alias and change my prompt. Though > I completely log o

Re: .bashrc still broke

2002-08-26 Thread Gordon Messmer
On Mon, 2002-08-26 at 10:01, Robert P. J. Day wrote: > > IMHO, setting the alias should go in your ~/.bashrc, while setting > the command line prompt should go in ~/.bash_profile. Anything used specifically by the interactive shell should go in .bash_profile. That includes both you

Re: .bashrc still broke

2002-08-26 Thread Robert P. J. Day
On Mon, 26 Aug 2002, Jim wrote: > Hal wrote: > > > > > Hi all.I have added some lines to my .bashrc in > > > an attempt to make an alias and change my prompt. Though > > > I completely log out and back in, the changes do not take > > > eff

.bashrc still broke

2002-08-26 Thread Jim
Hal wrote: > Hi all.I have added some lines to my .bashrc in > an attempt to make an alias and change my prompt. Though > I completely log out and back in, the changes do not take > effect (but xemacs does work when I type "xemacs"). What does your ~/.bash_profile look

Re: Can't get .bashrc to work

2002-08-26 Thread Martin Mewes
foo -v" works fine in my .bashrc as well as in /etc/profile.local sourced by /etc/profile But did you try out the hint? bis dahin Martin Mewes -- http://www.mamemu.de/ - VMware und mehr :-) Registered Linux User:274764 - http://counter.li.org/ Der Forte Agent in Deutsch: http://agent-de.

Re: Can't get .bashrc to work

2002-08-26 Thread Robert P. J. Day
On 25 Aug 2002, Gary A. Garibaldi wrote: > Change alias x='xemacs' to > alias x="xemacs" > this should fix your .bashrc problem with alias use " " huh? perhaps i'm still hung up on years of ksh usage, but why should the difference in quot

Re: Can't get .bashrc to work

2002-08-26 Thread Al Sparks
--- "Gary A. Garibaldi" <[EMAIL PROTECTED]> wrote: > Change alias x='xemacs' to > alias x="xemacs" > this should fix your .bashrc problem with alias use " " In this particular case, alias x=xemacs or alias x='xemacs&#

Re: Can't get .bashrc to work

2002-08-25 Thread Gary A. Garibaldi
Change alias x='xemacs' to alias x="xemacs" this should fix your .bashrc problem with alias use " " On Sun, 2002-08-25 at 19:37, James K Kroger wrote: > Hi all.....I have added some lines to my .bashrc in > an attempt to make an alias and change my p

Re: Can't get .bashrc to work

2002-08-25 Thread Hal Burgiss
On Sun, Aug 25, 2002 at 10:37:14PM -0400, James K Kroger wrote: > Hi all.I have added some lines to my .bashrc in > an attempt to make an alias and change my prompt. Though > I completely log out and back in, the changes do not take > effect (but xemacs does work when I type &quo

Can't get .bashrc to work

2002-08-25 Thread James K Kroger
Hi all.I have added some lines to my .bashrc in an attempt to make an alias and change my prompt. Though I completely log out and back in, the changes do not take effect (but xemacs does work when I type "xemacs"). Also when I type alias, the "x" is not there, but sever

Path Duplications: A solution using bash functions (was Bug in Bash Initilization, /etc/bashrc?)

2002-01-05 Thread John P Verel
[ -d ${1:-.} ] && no_path $* && eval ${2:-PATH}="$1:\$${2:-PATH}" } # if $1 is in path, remove it del_path () { no_path $* || eval ${2:-PATH}=`eval echo :'$'${2:-PATH}: | sed -e "s;:$1:;:;g" -e "s;^:;;" -e "s;:\$;;"` } ---

Re: Bug in Bash Initilization, /etc/bashrc? Zsh has a solution!

2002-01-02 Thread John P Verel
Poking around just a bit more, I find that Zshell has solved this problem. While I've not used zsh, its documentation shows the ability to 'typeset -U path' in a startup file. This tells the shell not to add anything to the path that is already there. This would seem to be a good feature to add

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-31 Thread John P Verel
On 01/01/02, 10:15:34AM +1100, Cameron Simpson wrote: > On Mon, Dec 31, 2001 at 02:03:36PM -0500, John P Verel <[EMAIL PROTECTED]> wrote: > | So, it appears that conditional path modification is the only viable > | option, short of major surgery. Cameron's rant is on point, IMHO. > > Oh, I dunno

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-31 Thread Cameron Simpson
On Mon, Dec 31, 2001 at 02:03:36PM -0500, John P Verel <[EMAIL PROTECTED]> wrote: | So, it appears that conditional path modification is the only viable | option, short of major surgery. Cameron's rant is on point, IMHO. Oh, I dunno. I don't like conditional modification much - feels tacky - it

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-31 Thread John P Verel
On 12/31/01, 12:15:42AM -0500, Devon wrote: > > > See my note of a few minutes ago re: --noprofile option:  tomorrow's > > projects > > Well, that's probably more elegant, but I'd still advocate conditional > path modification. ;) > Devon, et. al: Well, turns out the --noprofile option idea d

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread Cameron Simpson
again. That being the case, re-sourcing that file | > shouldn't affect your path. [... and other shell init stuff earlier in the thread ...] Last October I ranted a bit about the startup scripts in the "Is Red Hat heading down the wrong road?" thread. They are inefficient and overdone (

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread Devon
nvironment and startup programs > # Functions and aliases go in /etc/bashrc > # Original Red Hat path follows: > # PATH="$PATH:/usr/X11R6/bin" > # Adding . 11/24, to pick up current directory for jdk problem.  jpv > PATH="$PATH:/usr/X11R6/bin:/usr/java/jdk1.3.1/bin"

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread John P Verel
houldn't affect your path. The path modification in profile.d re: keberos is conditional, but not in /etc/profile. My /etc/profile looks like this: # /etc/profile # System wide environment and startup programs # Functions and aliases go in /etc/bashrc # Original Red Hat path follows: # PA

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread John P Verel
On 12/30/01, 06:34:03PM -0600, Dave Ihnat wrote: > On Sun, Dec 30, 2001 at 06:43:02PM -0500, John P Verel wrote: > > As I use gnome with the gnome display manager, I end up starting > > /etc/X11/xdm/Xsession, passing the argument "gnome-session". I have > > this line in my Xsession, at line numbe

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread Devon
uot;/usr/java/jre1.3.1/bin:$PATH" fi That solved that problem. Next, I installed sun's star office 6. The install of adabas added an entry to ~/.bashrc which made a mess of my path. The entry looked like: # by Sun Microsystems setup DBROOT=/home/devon/adabas DBWORK=/home/devon/adabas/s

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread Dave Ihnat
On Sun, Dec 30, 2001 at 06:43:02PM -0500, John P Verel wrote: > As I use gnome with the gnome display manager, I end up starting > /etc/X11/xdm/Xsession, passing the argument "gnome-session". I have > this line in my Xsession, at line number 93: > >exec -l $SHELL -c "gnome-session" > >

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread John P Verel
On 12/30/01, 03:36:15PM -0600, Dave Ihnat wrote: ---snip--- > > If one logs in under X, apparently login and X BOTH start login shells. > > I say this because what I see happening is that the path appendices from > > my /etc/profile and my ~/.bash_profile are added twice. This does not > > > h

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread Dave Ihnat
I've only a few seconds right now--have to trot off--but I'm afraid you don't quite have it. On Sun, Dec 30, 2001 at 02:33:14PM -0500, John P Verel wrote: > When init invokes getty, getty forks and creates (at level 5), consoles > 1 through 6 and, for X, console 7. Well, no. Actually, init spaw

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-30 Thread John P Verel
n the Red Hat bash initialization scripts, /etc/bashrc? > > When one opens a gnome-terminal, after a successful X session start of > gnome, here is what I believes happens: > > 1) Xsession starts a bash login session. > > 2) gnome-terminal starts a non-login session. > >

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-26 Thread John P Verel
there a bug in the Red Hat bash initialization scripts, /etc/bashrc? > [...] > | 1) Xsession starts a bash login session. > | 2) gnome-terminal starts a non-login session. > [...] > | The root of this, I think, is that last several lines in /etc/bashrc > | which, as noted in the c

Re: Bug in Bash Initilization, /etc/bashrc?

2001-12-25 Thread Cameron Simpson
On Tue, Dec 25, 2001 at 10:44:58PM -0500, John P Verel <[EMAIL PROTECTED]> wrote: | Is there a bug in the Red Hat bash initialization scripts, /etc/bashrc? [...] | 1) Xsession starts a bash login session. | 2) gnome-terminal starts a non-login session. [...] | The root of this, I think, i

Bug in Bash Initilization, /etc/bashrc?

2001-12-25 Thread John P Verel
Is there a bug in the Red Hat bash initialization scripts, /etc/bashrc? When one opens a gnome-terminal, after a successful X session start of gnome, here is what I believes happens: 1) Xsession starts a bash login session. 2) gnome-terminal starts a non-login session. This means that: a

Setting different PS1 var in .bashrc for different VT

2001-12-14 Thread Reuben D Budiardja
Hi, I am trying to run different client VT (xterm, aterm, etc). What I want is to have different PS1 variable for different VT client. But PS1 is set in .bashrc, and all VT client run the same .bashrc. So how can I accomplish what I wanna do? Thanks in advance for any help. Reuben D

Re: bashrc

2001-09-26 Thread Todd A. Jacobs
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > -rwxr-xr-x bashrc* > Is there any security problems? Depends on what you have in there, whether you're using user-private home directories (the default on Red Hat), and why you would want anyone else to be able to execute your perso

bashrc

2001-09-25 Thread cyu0635
Hi all If the brashrc is changed to -rwxr-xr-xbashrc* Is there any security problems? and What files are control the login environment? Many thanks ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo

Re: Gnome and KDE xterms with profile and bashrc

2000-10-23 Thread peterb
We use Tektronix X-terminals in our compay. When we use Gnome, we donnot get a frame around the windows. Eg windows is sticking to the desktop and cannot be moved around. There's no exit widget etc. But when running Gnome from the graphics console everything is allright. If we use KDE, we get

Gnome and KDE xterms with profile and bashrc

2000-10-23 Thread Gary Nielson
Hi, Quick question: I am trying to understand why when I make changes to my .bash_profile and/or .bashrc files for individual users, these environmental changes will appear under KDE when I use eterm, but not with the Gnome or other xterm programs. Are there other files I need to edit? I thought

xrootenv vs /root/.bashrc

1998-06-15 Thread Sim Robert
Hi, Would anyone please tell me the relationship between xrootenv and /root/.bashrc? Does xrootenv have precedence over .bashrc? Thanks. -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES! http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists

RE: Aliases in bashrc...

1998-05-11 Thread Zoki
Hi Krzysztof and Linus, I put the statements in /etc/profile and it works perfect. The syntax & spelling were correct in /home/.bashrc but it still didn't want to work. Anyway, it works this way. Thanks! Zoki. On Mon, 11 May 1998, Cabaj, Krzysztof wrote: ->Hi, ->I propose to

Re: Aliases in bashrc...

1998-05-11 Thread kcsmart
> I put some aliases in /etc/bashrc as root to cut on the typing and it > works. I did the same in /home/.bashrc as user and...it doesn't work. > Whhha.. > > I get an error message saying "command not found". > Does the user have the specified pat

Re: Aliases in bashrc...

1998-05-11 Thread John H Darrah
On Mon, 11 May 1998, Zoki wrote: > I put some aliases in /etc/bashrc as root to cut on the typing and it > works. I did the same in /home/.bashrc as user and...it doesn't work. > Whhha.. > > I get an error message saying "command not found". >

Re: Aliases in bashrc...

1998-05-11 Thread Anthony E. Greene
-BEGIN PGP SIGNED MESSAGE- At 12:04 5/11/98 +0200, Zoki wrote: >I put some aliases in /etc/bashrc as root to cut on the typing and it >works. I did the same in /home/.bashrc as user and...it doesn't work. >Whhha.. > >I get an error message saying "c

RE: Aliases in bashrc...

1998-05-11 Thread Cabaj, Krzysztof
Hi, I propose to put aliases in the /etc/profile. It should work correctly. Krzysztof > -Original Message- > From: Linus Akerlund [SMTP:[EMAIL PROTECTED]] > Sent: 11 maja 1998 13:18 > To: Red Hat list > Subject: Re: Aliases in bashrc... > > On Mon, 11

Re: Aliases in bashrc...

1998-05-11 Thread Linus Åkerlund
On Mon, 11 May 1998, Zoki wrote: > I put some aliases in /etc/bashrc as root to cut on the typing and it > works. I did the same in /home/.bashrc as user and...it doesn't work. > Whhha.. > > I get an error message saying "command not found". I sup

Aliases in bashrc...

1998-05-11 Thread Zoki
I put some aliases in /etc/bashrc as root to cut on the typing and it works. I did the same in /home/.bashrc as user and...it doesn't work. Whhha.. I get an error message saying "command not found". Any su

Re: .bashrc

1998-03-09 Thread Scott McDermott
LEBLIN JY <[EMAIL PROTECTED]> on Mon, Mar 09, 1998 at 03:01:06PM +0100: > Has anybody got an idea where the mistake is ( and it is certainly stupid ). > Here is what my .bashrc is like if it may help. Unless i make a source > .bashrc none of the alias is available. Bash only

.bashrc

1998-03-09 Thread LEBLIN JY
Hi, It's not very important but i've got problems with my .bashrc file : the system doesn't seem to take care of it. I've checked the man and it says that the option -norc ( which obliges not to read the .bashrc ) is default when the shell invoked is sh so maybe that&#x