Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!bywater!arnor!Watson!pfink From: pfink@watson.ibm.com (Paul Fink) Newsgroups: comp.unix.aix Subject: Re: bug in nohup? Keywords: nohup, ksh, sh, ~ Message-ID: <1991Jun5.021540.1863@watson.ibm.com> Date: 5 Jun 91 02:15:40 GMT Article-I.D.: watson.1991Jun5.021540.1863 References: <1991Jun04.172858.4736@lynx.CS.ORST.EDU> Sender: news@watson.ibm.com (NNTP News Poster) Organization: IBM T. J. Watson Research Center Lines: 22 Nntp-Posting-Host: farmhouse In article <1991Jun04.172858.4736@lynx.CS.ORST.EDU>, ghe@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/". 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