zsh-users
 help / color / mirror / code / Atom feed
* Positional Parameter "$@"
@ 1995-06-29 20:03 Yoshinari KANAYA/金谷吉成
  0 siblings, 0 replies; only message in thread
From: Yoshinari KANAYA/金谷吉成 @ 1995-06-29 20:03 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-06-30  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-06-29 20:03 Positional Parameter "$@" Yoshinari KANAYA/金谷吉成

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).