From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78db455f839626d5 X-Google-Attributes: gidfee84,public From: "Vincent" Subject: Re: Korn Shell login problems Date: 1997/05/16 Message-ID: <5lhshf$493$1@tst.hk.super.net>#1/1 X-Deja-AN: 241924259 References: <5lflbt$92e@carbon.cudenver.edu> X-MimeOLE: Produced By Microsoft MimeOLE Engine V4.71.0544.0 Organization: Hong Kong Supernet Newsgroups: comp.unix.osf.osf1 Hi Russel, Here are the necessary corrections to be done. I haven't tested them and I may have made some mistakes ... Russell F Glissmann wrote in article <5lflbt$92e@carbon.cudenver.edu>... >Hello all; >I recently changed over to using the Korn shell. When I login I keep gettin >indicating an error message indicating a problem in my .profile script. > For me the script looks to be okay. I imported the .profile from a >Sun system, and the server I'm running on now is a Dec Alpha running >OSF/1 v 3.0. Here is the script itself: @(#)local.profile setup ># >if ["`basename ${SHELL}`"=="ksh"]; export ENV=${HOME}./kshrc fi if [[ `basename $SHELL` = "ksh" ]]; then export ENV=$HOME/.kshrc fi >#if [-a /etc/kshrc]; then ./etc/kshrc fi >if [-a "${ENV}"]; then .${ENV} fi >fi 2>/dev/null if [[ -f $ENV ]]; then . $ENV 2> /dev/null fi >stty istrip >stty erase ^? >export PATH=$HOME/bin:/usr/ucb:/etc:/bin:/sbin:/usr/bin:/usr/sbin: >/usr/etc:/usr/bin/X11:/usr/local/etc:/usr/local/bin:/usr/new:/usr/games:. >export PATH >ENV=$HOME/.kshrc;export ENV >SHELL=/usr/bin/ksh;export SHELL >EDITOR=/USR/BIN/VI;export EDITOR > >Here is the error message I get: .profile[3]: syntax error: `if' unmatched >If someone could look and tell what is not correct I would be gratefull. >Thanks >Russell Glissmann >rfglissm@ouray.cudenver.edu >rglissma@datastor.com > that should work... Bye. Vincent e-mail: pcharlie@hk.super.net