* Re: unknown file attribute
[not found] <20110402203319.3c0f4acb@arcor.com>
@ 2011-04-02 19:32 ` ZyX
0 siblings, 0 replies; only message in thread
From: ZyX @ 2011-04-02 19:32 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: Text/Plain, Size: 1264 bytes --]
Reply to message «unknown file attribute»,
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
see this error), but qualifier `A' means `group-readable files' and `D' means
`set GLOB_DOTS option for the current pattern'. As there is no pattern then no
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
command from executing and `echo (A)' will yield an error (either `zsh: no
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 some
situations.
Original message:
> Hi there,
> I accidentally found that:
>
> $ echo (B)
>
> yields:
>
> zsh: unknown file attribute
>
>
> Same for echo (C). However, echo (A) and echo (D) work. Any idea why
> that happens?
>
> I know I could type: "(B)". But I want to save typing the "s.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-02 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20110402203319.3c0f4acb@arcor.com>
2011-04-02 19:32 ` unknown file attribute ZyX
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).