bug in nohup?

Guangliang He ghe at physics.orst.edu
Wed Jun 5 03:28:58 AEST 1991


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 at physics.orst.edu



More information about the Comp.unix.aix mailing list