* unknown file attribute
@ 2011-04-02 18:33 Manfred Lotz
0 siblings, 0 replies; 3+ messages in thread
From: Manfred Lotz @ 2011-04-02 18:33 UTC (permalink / raw)
To: zsh-users
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.
--
Manfred
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unknown file attribute
2011-04-02 20:12 Bart Schaefer
@ 2011-04-03 7:30 ` Manfred Lotz
0 siblings, 0 replies; 3+ messages in thread
From: Manfred Lotz @ 2011-04-03 7:30 UTC (permalink / raw)
To: zsh-users
On Sat, 02 Apr 2011 13:12:13 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> [Forwarding the entire message because Zyx replied to zsh-workers but
> the original message was to zsh-users, so some on the latter list may
> not have seen Zyx's comments.]
>
> To Manfred:
> If you don't want to learn glob qualifiers, "setopt
> no_bare_glob_qual".
>
I knew there must be a setting to prevent it but didn't know how to
find it.
no_bare_glob_qual does it nicely.
--
Thanks,
Manfred
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unknown file attribute
@ 2011-04-02 20:12 Bart Schaefer
2011-04-03 7:30 ` Manfred Lotz
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2011-04-02 20:12 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 1760 bytes --]
[Forwarding the entire message because Zyx replied to zsh-workers but the
original message was to zsh-users, so some on the latter list may not have
seen Zyx's comments.]
To Manfred:
If you don't want to learn glob qualifiers, "setopt no_bare_glob_qual".
--- Forwarded mail from zyx@np.by
From: ZyX <zyx@np.by>
Reply-To: zyx@np.by
To: zsh-workers@zsh.org
Subject: Re: unknown file attribute
Date: Sat, 2 Apr 2011 23:32:59 +0400
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.
---End of forwarded mail from zyx@np.by
[-- Attachment #2: 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 #3: Transferred from mail from zyx@np.by: This is a digitally signed message part. --]
[-- Type: application/octet-stream , Size: 205 bytes --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
iEYEABECAAYFAk2XeesACgkQTFU0h8DxG4PKeACfWH6R6SfkXu/qEbBAVDSvmb9r
DxUAn2/ArRiDFMMoCCkjy52UU1758ZTZ
=db5b
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-03 7:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-02 18:33 unknown file attribute Manfred Lotz
2011-04-02 20:12 Bart Schaefer
2011-04-03 7:30 ` Manfred Lotz
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).