[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Bash profile/bashrc, X login
- From: Matthew Saltzman <mjs ces clemson edu>
- To: guinness-list redhat com
- Subject: Re: Bash profile/bashrc, X login
- Date: Wed, 28 Feb 2001 21:47:42 -0500 (EST)
Bill Crawford <billc@netcomuk.co.uk> wrote:
>> From: Matthew Saltzman <mjs@ces.clemson.edu>
>> Date: Tue, 27 Feb 2001 22:58:40 -0500 (EST)
>>
>>[no colorls or which-2 aliases in gnome-terminal]
>
>> Any other ideas welcome.
>
> Check that they have the executable bit set, for "other". This is
>how the current code in /etc/profile does it (from setup-2.3.8-1):
>
> for i in /etc/profile.d/*.sh ; do
> if [ -x $i ]; then
> . $i
> fi
> done
According to the bash man page, '. <file>' is a synonym for 'source file'.
I don't think executability of <file> is required, but in any case:
[root@yankee /etc]# ls -l profile.d
total 17
-rwxr-xr-x 1 root root 379 Aug 25 2000 colorls.csh
-rwxr-xr-x 1 root root 474 Aug 25 2000 colorls.sh
-rwxr-xr-x 1 root root 58 Nov 21 17:54 gnome-ssh-askpass.csh
-rwxr-xr-x 1 root root 70 Nov 21 17:54 gnome-ssh-askpass.sh
-rwxr-xr-x 1 root root 282 Aug 15 2000 kde.csh
-rwxr-xr-x 1 root root 233 Aug 15 2000 kde.sh
-rwxr-xr-x 1 root root 943 Aug 23 2000 lang.csh
-rwxr-xr-x 1 root root 1618 Aug 23 2000 lang.sh
-rwxr-xr-x 1 root root 122 Aug 23 2000 less.csh
-rwxr-xr-x 1 root root 108 Aug 23 2000 less.sh
-rwxr-xr-x 1 root root 64 Aug 21 2000 mc.csh
-rwxr-xr-x 1 root root 169 Aug 21 2000 mc.sh
-rwxr-xr-x 1 root root 104 Aug 23 2000 qt.csh
-rwxr-xr-x 1 root root 101 Aug 23 2000 qt.sh
-rwxr-xr-x 1 root root 126 Jul 13 2000 which-2.csh
-rwxr-xr-x 1 root root 125 Jul 13 2000 which-2.sh
> Can you please paste the results of running (as root) "rpm -V setup",
>"rpm -V which" and "rpm -V fileutils", and of typing "alias" to the
>bash shell in an xterm and in a gnome-terminal please ?
Gladly.
[root@yankee /etc]# rpm -V setup which fileutils
.M...... c /etc/hosts.allow
.M...... c /etc/hosts.deny
S.5....T c /etc/printcap
>From gnome-terminal started from the Gnome panel:
[mjs@yankee iol]$ alias
[mjs@yankee iol]$ echo $SSH_ASKPASS
/usr/libexec/openssh/gnome-ssh-askpass
[mjs@yankee iol]$ echo $SHLVL
1
>From an rxvt started from the Gnome menu:
[mjs@yankee mjs]$ alias
alias l.='ls -d .[a-zA-Z]* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
[mjs@yankee mjs]$ echo $SSH_ASKPASS
/usr/libexec/openssh/gnome-ssh-askpass
[mjs@yankee mjs]$ echo $SHLVL
2
Same results when logged into xterms, gnome-terminals started from the
command line, kterms, etc. Also, same results when logged into a
virtual console, except then, SHLVL is 1.
Utterly mysterious, no?
Matthew Saltzman
Clemson University Math Sciences
mjs@clemson.edu
http://www.math.clemson.edu/~mjs
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]