From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26058 invoked by alias); 2 Apr 2011 19:54:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28972 Received: (qmail 14846 invoked from network); 2 Apr 2011 19:54:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at np.by designates 91.149.189.205 as permitted sender) From: ZyX Reply-To: zyx@np.by To: zsh-workers@zsh.org Subject: Re: unknown file attribute Date: Sat, 2 Apr 2011 23:32:59 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.36-zen1; KDE/4.5.5; x86_64; ; ) References: <20110402203319.3c0f4acb@arcor.com> In-Reply-To: <20110402203319.3c0f4acb@arcor.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2841658.LH0Zr0ACW3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201104022332.59964@-zyx> --nextPart2841658.LH0Zr0ACW3 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Reply to message =ABunknown file attribute=BB,=20 sent 22:33:19 02 April 2011, Saturday by Manfred Lotz: These are glob qualifiers: qualifiers `B' and `C' do not exist (that is why= you=20 see this error), but qualifier `A' means `group-readable files' and `D' mea= ns=20 `set GLOB_DOTS option for the current pattern'. As there is no pattern then= no=20 files match it and zsh will behave according to its options: 1. If nullglob is set unmatched pattern is removed from argumnents list and `echo (A)' yields just a single newline. 2. If cshnullglob and nomatch are unset unmatched pattern is left as-is and `echo (A)' yields `(A)\n' 3. If either cshnullglob or nomatch are set then unmatched pattern prevents= =20 command from executing and `echo (A)' will yield an error (either `zsh: no= =20 matches found: (A)' if cshnullglob is unset or `zsh: nomatch' if it is set). I suggest you to learn this glob quilifiers as they are really useful in so= me=20 situations. Original message: > Hi there, > I accidentally found that: >=20 > $ echo (B) >=20 > yields: >=20 > zsh: unknown file attribute >=20 >=20 > Same for echo (C). However, echo (A) and echo (D) work. Any idea why > that happens? >=20 > I know I could type: "(B)". But I want to save typing the "s. --nextPart2841658.LH0Zr0ACW3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk2XeesACgkQTFU0h8DxG4PKeACfWH6R6SfkXu/qEbBAVDSvmb9r DxUAn2/ArRiDFMMoCCkjy52UU1758ZTZ =db5b -----END PGP SIGNATURE----- --nextPart2841658.LH0Zr0ACW3--