From: Bart Schaefer <schaefer@brasslantern.com>
To: Jonathan Hankins <jonathan-hankins@mindspring.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Globbing feature suggestion
Date: Thu, 15 Dec 2005 04:34:52 +0000 [thread overview]
Message-ID: <1051215043452.ZM3906@candle.brasslantern.com> (raw)
In-Reply-To: <871x0ge5ge.fsf@shazam.localnet>
[zsh-workers copied]
On Dec 13, 9:13pm, Jonathan Hankins wrote:
}
} > -nogroup is the glob qualifier
} > (e['stat -s -A reply +gid $REPLY;
} > reply=(${${(M)reply:#<->}/<->/$REPLY})'])
}
} This doesn't work for me -- stat -s returns '???' when there is no
} pw/grent for the the u/gid.
Urk. Sorry about that; I don't actually *have* any files with unknown
uid/gid on my system, but I had assumed "stat" would return the numeric
ID in the absence of a name, the way "ls -l" does.
In fact I think it's pretty darn useless to return '???' for all unknown
IDs, as if they were equivalent. Would anyone seriously object if that
were changed?
} It works if I change it to:
}
} -nogroup is the glob qualifier
} (e['stat -s -A reply +gid $REPLY;
} reply=(${${(M)reply:#???}/???/$REPLY})'])
As that's written, ??? is a pattern matching any three characters, so if
you have any 3-letter usernames on your system, that would improperly
include them. You need \?\?\? instead.
next parent reply other threads:[~2005-12-15 4:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87irtt4uno.fsf@shazam.localnet>
[not found] ` <1051213041649.ZM21953@candle.brasslantern.com>
[not found] ` <871x0ge5ge.fsf@shazam.localnet>
2005-12-15 4:34 ` Bart Schaefer [this message]
2005-12-15 10:45 ` Peter Stephenson
2005-12-15 23:59 ` Jonathan Hankins
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=1051215043452.ZM3906@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=jonathan-hankins@mindspring.com \
--cc=zsh-workers@sunsite.dk \
/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).