>This is what I have been doing for a number of years instead:
  >
>in /etc/profile I have this:
 >
># set up "global" ENV script
>export ENV=/etc/@ENV


I've been doing the same but from my .profile. Working in Switzerland, my 
emulator is has long been setup to run with CP IBM-500, which has some 
essential characters mapped to different code points. So I learnt some 20 years 
ago that using square bracket [] and curly braces {} in shell scripts is not a 
good idea. Therefore, I'm always using the test command instead of [] in shell 
scripts.


So this:
UID=`id -u `
if [ "$UID" = "0" ]
then...


becomes this:


if test $(id -u) = 0
then...




And there are other characters like the pipe symbol which can cause troubles.
--
Peter Hunkeler



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to