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: Bob Vickers Subject: Re: Korn Shell login problems Date: 1997/05/19 Message-ID: <33801E7A.167E@dcs.rhbnc.ac.uk>#1/1 X-Deja-AN: 242378185 References: <5lflbt$92e@carbon.cudenver.edu> To: Russell F Glissmann Organization: Royal Holloway College, University of London Newsgroups: comp.unix.osf.osf1 Russell F Glissmann wrote: > > 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 There are at least 5 errors in that line, and more in the rest of the script. You need to test it carefully both on the Sun system and the OSF one. if [ "`basename ${SHELL}`" = "ksh" ]; then export ENV=${HOME}./kshrc ; fi will sort out line 3. Note the addition of white space, the replacement of == by =, the addition of 'then' and a semi-colon before the 'fi'. Bob -- ====================================================================== Bob Vickers R.Vickers@rhbnc.ac.uk Dept of Computer Science, Royal Holloway College, University of London WWW: http://www.dcs.rhbnc.ac.uk/%7Ebobv/ Phone: +44 1784 443691