zsh-workers
 help / color / mirror / code / Atom feed
* #! problem
@ 1997-01-15  9:37 Peter Stephenson
  1997-01-15 18:50 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 1997-01-15  9:37 UTC (permalink / raw)
  To: Zsh hackers list

Somebody here tried something like:

#!/bin/zsh -f    
#            ^^^^empty spaces added here
echo your code here

and got back:

/bin/zsh: bad option: -

This is a problem because, once again, previous versions of zsh
weren't so fussy.  (For comparison, ksh reacts similarly but you get
`-f     : bad option(s)' which is at least a little clearer.)  This
happens on IRIX, SunOS 4, AIX and Digital Unix 4.0, though apparently
not on Solaris.

I would think dropping meaningless spaces in an option string
(i.e. when an option letter is expected) again would be harmless.  I
just want to wait for the waves of protest before trying anything.

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-01-16  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-15  9:37 #! problem Peter Stephenson
1997-01-15 18:50 ` Bart Schaefer
1997-01-16  9:37   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).