Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

script execute problem

The following fails on my 'SunOS cleo 4.1.4 1 sun4m' but works on
'SunOS visionz 5.5 Generic sun4u sparc SUNW,Ultra-1'

To access SunSolve you have to be registered from a SunService
account. Could you please pursue the following problem, or enable me

I wrote a simple (but amazingly popular) script called demand:
	#!/nfs/casper/usr1/public/zsh -f
	echo $*
	until ($*)

The above runs fine, but when I change the first line to:
	#!/nfs/casper/usr1/public/foo/zsh -f
it doesn't work, instead I get the following error:
>demand dc_shell
zsh: command not found: demand
zsh: 11667 exit 1     demand dc_shell

But I can start a new shell with:

So let's take a look at these:

>ls -l /nfs/casper/usr1/public/zsh

lrwxrwxrwx   1 shr      unxtools       57 Sep 23 11:48
/nfs/casper/usr1/public/zsh ->

>ls -l /nfs/casper/usr1/public/foo/zsh

lrwxrwxrwx   1 shr      unxtools       57 Sep 23 11:42
/nfs/casper/usr1/public/foo/zsh ->

>ls -l /nfs/casper/usr1/public/external/export/sun-sunos/bin/zsh

lrwxrwxrwx   1 shr      staff          48 Sep 20 00:31
/nfs/casper/usr1/public/external/export/sun-sunos/bin/zsh ->

>ls -l /nfs/casper/usr1/public/external/export/sun-sunos/bin/../../../tools/zsh-3.0.0.encap/sun-sunos/bin/zsh

-rwxr-xr-x   2 shr      staff      499712 Sep 21 21:28

>ls -ld /nfs/casper/usr1/public

drwxrwsr-t   6 root     unxtools      512 Sep 23 11:48 /nfs/casper/usr1/public/

>ls -ld /nfs/casper/usr1/public/foo

drwxr-xr-x   2 shr      unxtools      512 Sep 23 11:42 /nfs/casper/usr1/public/foo/

Okay, so I get a little carried away with the links and long path
names... But what problem am I seeing here. I tried the above running
from zsh 3.0.0-gjb (that's 3.0.0 + gjb's patches for color and
POSTPROMPT) and csh with the same results. The final exec is also zsh
3.0.0-gjb, but even when I changed the last link to point to zsh-3.0.0
it had the same problems.


PS I still can't receive mail from vivan. And where is vivan in the
hosts-table anyways? It's not in /nfs/becky/etc/hosts or

Messages sorted by: Reverse Date, Date, Thread, Author