bug in nohup?

Paul Fink pfink at watson.ibm.com
Wed Jun 5 12:15:40 AEST 1991


In article <1991Jun04.172858.4736 at lynx.CS.ORST.EDU>, ghe at physics.orst.edu (Guangliang He) writes:
|> 
|> This is on a RS/6000 530 with AIX3.1 3002. I have a 5 line shell script named
|> haha:
|> ------------
|> $ cat haha
|> echo $SHELL
|> echo $HOME
|> cd /tmp
|> cd ~
|> ls -CF
|> ------------

Hi  Guangliang,
  I think you have hit a feature in AIX that almost requires that every
shell script start with "#!/bin/<shell>". In your case nohup is running the
command with /bin/bsh which don't know nothin' about ~.
  But in general is much safer in AIX to declare what shell you want your
script to run under. You will find this especially true if you use csh and
write ksh scripts.

Paul Fink



More information about the Comp.unix.aix mailing list