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 PAA22032 for ; Fri, 30 Jun 1995 15:01:48 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA01955 (5.65c/Gatech-10.0-IDA for ); Fri, 30 Jun 1995 00:57:14 -0400 Received: by math (5.x/SMI-SVR4) id AA26730; Fri, 30 Jun 1995 00:54:09 -0400 Old-Return-Path: Resent-Date: Fri, 30 Jun 1995 05:03:44 +0900 Old-Return-Path: To: zsh-users@math.gatech.edu Subject: Positional Parameter "$@" Organization: Miyazaki Laboratory, Graduate School of Information Sciences, Tohoku University, Sendai 980-77, Japan Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Id: <26750.804456238.1@yumimi.dais.is.tohoku.ac.jp> Date: Fri, 30 Jun 1995 05:03:44 +0900 Message-Id: <26751.804456239@yumimi.dais.is.tohoku.ac.jp> From: Yoshinari KANAYA/=?ISO-2022-JP?B?GyRCNmJDKzVIQC4bKEI=?= Resent-Message-Id: <"ou9jo.0.yW6.y2uyl"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/38 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 Miyazaki Laboratory, Graduate School of Information Sciences, Tohoku University, Sendai 980-77, Japan