Can someone make a small fix to mc?

Michal Moskal malekith at pld-linux.org
Tue Nov 5 17:08:32 CET 2002


On Tue, Nov 05, 2002 at 05:02:47PM +0100, Jarosław Kamper wrote:
> [jack at pldworkstation jack]$ ziew=ZIEW && if [ "$ziew" = "" ]; then echo OK; 
> else echo FAILED; fi
> FAILED
> [jack at pldworkstation jack]$ echo $SHELL
> /bin/bash

What was it suppoused to show? test command (and [ as its alias) use =
for equality prediacte.

> But I think there is something sucking in /etc/profile:
> 
> for i in /etc/profile.d/*.sh ; do
>         if [ -x $i ]; then
>                 . $i
>         fi
> done
> 
> It will be always run whatever shell will be used. In the /etc/profile.d/ 
> there are also scripts *.csh which never (I think) will be used. There is 
> also case $SH where some scripts.$SH could be placed. 

csh doesn't read /etc/profile.

-- 
: Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h



More information about the pld-devel-en mailing list