Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!ogicse!orstcs!thyphy.physics.orst.edu!ghe From: ghe@physics.orst.edu (Guangliang He) Newsgroups: comp.unix.aix Subject: bug in nohup? Keywords: nohup, ksh, sh, ~ Message-ID: <1991Jun04.172858.4736@lynx.CS.ORST.EDU> Date: 4 Jun 91 17:28:58 GMT Sender: @lynx.CS.ORST.EDU Reply-To: ghe@physics.orst.edu Organization: Dept. of Physics, Oregon State University Lines: 30 Nntp-Posting-Host: thyphy.physics.orst.edu 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 ------------ $ ll haha -rwxr-xr-x 1 ghe staff 43 Jun 04 10:13 haha ------------ My login shell is /bin/ksh. If I run 'haha' directly, everything is normal. But I have problem run haha with 'nohup' command. The nohup.out gives right answer for $SHELL, and $HOME but it says: ~: No such file or directory then went ahead listed the files in /tmp. What is the problem? By the way, the script works fine if I put a #!/bin/ksh at the very beginning. --- Guangliang He ghe@physics.orst.edu