From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id KAA25770 for ; Wed, 28 Jun 1995 10:48:35 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA24036 (5.65c/Gatech-10.0-IDA for ); Tue, 27 Jun 1995 20:47:51 -0400 Received: by math (5.x/SMI-SVR4) id AA26414; Tue, 27 Jun 1995 20:44:36 -0400 Old-Return-Path: Resent-Date: Tue, 27 Jun 95 17:39:29 PDT Old-Return-Path: Date: Tue, 27 Jun 95 17:39:29 PDT From: peter@objy.com (Peter Moore) Message-Id: <9506280039.AA13898@hoonk.objy.com> To: mason@werple.mira.net.au Cc: zsh-users@math.gatech.edu In-Reply-To: <199506272350.JAA07735@werple03.mira.net.au> (message from Geoff Wing on Wed, 28 Jun 1995 09:50:44 +1000 (EST)) Subject: Re: zsh script can't find zsh binary? Resent-Message-Id: <"LyrWs3.0.MS6.oKAyl"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/32 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > :Jose Unpingco writes: > :> I have a very simple script. It looks like this.. > :> #!/home/sunshine/grad/unpingco/bin/zsh > :> echo 'hey' > :> > :> when I try to invoke it on the command line as > :> zsh> cf.zsh > :> I get > :> zsh: command not found: cf.zsh > : > :This looks like a classic case of the interpreter exec line being too > :long! One of the sillier features of unix lookalikes. > :There is usually a limit on how long the #! line can be, 32 characters > :or so. The error message always complains it can't find the script > :file, not the interpreter. You've passed the length limit. This is a > :kernel problem, rather than zsh. :-) > > This isn't the problem here. The limit is 64 characters, and the message for > exceeding this is: "exec format error". (It has nothing to do with the kernel) > Another possibility could be that the program's not in his path, and he should > do ./cf.zsh On which platform? On a Sun4 (SunOS 4.1.3) the limit is 32 characters and the error message from zsh is without an explicit path for the executable is: zsh: command not found: fog And the error you get with an explicit path is: zsh: no such file or directory: ./fog Peter Moore peter@objy.com