Path: utzoo!attcan!uunet!mcsun!isgate!krafla!valdi From: valdi@rhi.hi.is (Thorvaldur Sigurdsson) Newsgroups: comp.sys.hp Subject: ksh question Keywords: ksh Message-ID: <1586@krafla.rhi.hi.is> Date: 20 Mar 90 11:04:47 GMT Organization: University of Iceland Lines: 67 Background: The following was done on a HP 9000/360 with the Korn shell (vers. 62.2 from what /bin/ksh) and HP-UX 6.5. .profile # This is a KornShell login profile # Set and export the following export EDITOR=vi \ ENV=$HOME/.envfile .envfile # This is a environment file set -o ignoreeof markdirs alias ls='lsf' stty intr kill demo_arg #!/bin/ksh echo $0 echo $1 echo $2 chmod +x demo_arg demo_arg var1 var2 Expected results: ./demo_arg var1 var2 Execution result: ./demo_arg markdirs The expected results can be acheived if "set -o ignoreeof markdirs" is in the .profile. Another solution is to change in .envfile : set -o ignoreeof markdirs to set -o ignoreeof set -o markdirs It seems to be unlegal to have the command "set -o ignoreeof markdirs" in .envfile. Why ? Glossary: markdirs : ksh appends a trailing / to all directory names resulting from pathname expansion. ignoreeof : When the interactive option is also set, ksh does not exit on End-of-file (default CTRL-d). Type "exit" to terminate ksh. ________________________________________________________________________ | Thorvaldur Egill Sigurdsson | Internet: valdi@kerfi.hi.is | | Engineering Research Institute | | | University of ICELAND | Phone: 354-1-694699 | | Hjardarhagi 2-6 | | | 107 Reykjavik, ICELAND | | ------------------------------------------------------------------------