From: "Yoshinari KANAYA/金谷吉成" <kanaya@yumimi.dais.is.tohoku.ac.jp>
To: zsh-users@math.gatech.edu
Subject: Positional Parameter "$@"
Date: Fri, 30 Jun 1995 05:03:44 +0900 [thread overview]
Message-ID: <26751.804456239@yumimi.dais.is.tohoku.ac.jp> (raw)
Dear ZSH maintainers,
$ echo $ZSH_VERSION
2.6-beta8
$ uname -a
SunOS chacha 5.3 Generic_101318-70 sun4m sparc
(1) $ cat foo
#!/bin/zsh
echo ${1+"$@"}
$ ./foo a b c
./foo: ambiguous: a [2]
(2) $ cat bar
#!/bin/ksh
echo ${1+"$@"}
$ ./bar a b c
a b c
(Same even if ksh is bash)
Why the result is different? By the way, the following is OK.
(3) $ cat baz
#!/bin/zsh
echo ${1+"$*"}
$ ./baz a b c
a b c
I read zshparam manual page, specially "Positional Parameters"
section. But I couldn't also explain the difference between (1) and (3).
Will anybody point out my stupidity?
Sincerely,
--
Yoshinari KANAYA <kanaya@yumimi.dais.is.tohoku.ac.jp>
Miyazaki Laboratory, Graduate School of Information Sciences,
Tohoku University, Sendai 980-77, Japan
reply other threads:[~1995-06-30 5:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26751.804456239@yumimi.dais.is.tohoku.ac.jp \
--to=kanaya@yumimi.dais.is.tohoku.ac.jp \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).