From: ZyX <zyx@np.by>
To: zsh-workers@zsh.org
Subject: Re: unknown file attribute
Date: Sat, 2 Apr 2011 23:32:59 +0400 [thread overview]
Message-ID: <201104022332.59964@-zyx> (raw)
In-Reply-To: <20110402203319.3c0f4acb@arcor.com>
[-- 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 --]
parent reply other threads:[~2011-04-02 19:54 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20110402203319.3c0f4acb@arcor.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201104022332.59964@-zyx \
--to=zyx@np.by \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).