From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11414 invoked by alias); 9 Feb 2015 19:52:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19843 Received: (qmail 14361 invoked from network); 9 Feb 2015 19:52:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_FSL_HELO_BARE_IP_2 autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1423511180; bh=kF2e+XZTb3KGv8iqDZOSY/ryPVNqNbLllU5ZKRIK7eM=; h=From:To:In-Reply-To:References:Subject:Date; b=gC5TaVLnuY+o5BZAZTHwN6u+iuvxfsu88D85iJUy5OIgNzoMh/j6jUAMUPkLNvuzM jAo8qYXJ/fnWkrneSLkX8eUyxZ2oqoKIXbVwZp271ruWkiJ7ahYsI/PfzAjHSipZz1 CvW2YdVk9aLAGaqjJrU7Sm022LS9uoBwCeuwHuNE= From: ZyX To: zzapper , "zsh-users@zsh.org" In-Reply-To: References: Subject: Re: Oddity? MIME-Version: 1.0 Message-Id: <617731423511180@web28m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 09 Feb 2015 22:46:20 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 09.02.2015, 20:57, "zzapper" : > Hi > >  e(){echo $1} && e (g) This command is too odd. Just echo (g) does exactly the same. You must read `man zshexpn`, section “Glob Qualifiers”: `g` qualifier stands for “files owned by group ID” and expects group ID as an argument and `G` qualifier is like `(g[$EGID])` (assuming parameter expansion works here (it actually does not)) and takes no parameters. > > zsh: missing delimiter for 'g' glob qualifier > > e (G) is ok Do `setopt nullglob` or `setopt nomatch` and you will see that this is *not* OK because `(G)` matches nothing. The only reason this may echo `(G)` is that you have enabled POSIX shell-like behaviour which substitutes glob pattern with itself literally if there are no matches. > > -- > zzapper > https://twitter.com/dailyzshtip > > --- > This email has been checked for viruses by Avast antivirus software. > http://www.avast.com