Gary Reid wrote:
>
> do you have:
>
> . /etc/bash.bashrc
>
> first?
No after it. Here's a listing of /root/.bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PATH=$PATH:/usr/local/sbin:/usr/local/bin
export PATH
# --- END LISTING
> does it work if you open a non-login shell?
I assume you mean if I type 'bash' directly on the vs?
I've just checked and yes, it does work if I open a non-login shell.
Hmmm, intriguing....
Ben
>
> Gary
>
> ----- Original Message -----
> From: "Ben Kennish" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 12, 2001 12:10 PM
> Subject: .bashrc - Simple question
>
> > A refreshing change... a question that can be answered in a couple of
> > seconds (I hope!)
> >
> > Why isn't "/root/.bashrc" run when I telnet to a VS as admin?
> >
> > I've inserted
> >
> > alias rm='rm -i'
> >
> > in it but I dont get any prompt to delete files. Typing the above line
> > in manually after having logged on does give me a prompt so the script
> > doesnt seem to be getting run?
> >
> > Thanks,
> >
> >
> > --
> > Ben Kennish
> >
> > e: [EMAIL PROTECTED]
> > w: www.fubra.com
> >