zsh-workers
 help / color / mirror / code / Atom feed
* Glob qualifier for modification time on directories
@ 2008-05-27  9:40 Jörg Sommer
  2008-05-27 11:03 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Jörg Sommer @ 2008-05-27  9:40 UTC (permalink / raw)
  To: zsh-workers

Hi,

doesn't the modifier m work on directories?

% ls -ldt ${(s.:.)PATH}
drwxr-xr-x 2 root  root  49152 27. Mai 11:25 /usr/bin
drwxr-xr-x 2 root  root   4096 23. Mai 18:36 /bin
drwxr-xr-x 2 root  root   8192 22. Mai 15:52 /usr/sbin
drwxr-xr-x 2 root  root   4096 20. Mai 17:06 /sbin
drwxr-xr-x 2 joerg users  4096 20. Mai 09:54 /home/joerg/bin
drwxr-xr-x 2 joerg users  4096 20. Mai 09:54 /home/joerg/bin
drwxr-xr-x 2 root  root   4096  7. Mai 17:05 /usr/games
drwxr-xr-x 2 root  root   4096 14. Apr 16:34 /usr/lib/ccache
drwxrwsr-x 2 root  staff  4096 17. Jan 2006  /usr/local/bin

% date
Di 27. Mai 11:32:42 CEST 2008
% echo ${(s.:.)PATH}(Nms-20)
/home/joerg/bin /usr/lib/ccache /home/joerg/bin /usr/local/bin /usr/bin
/bin /usr/games /usr/sbin

Bye, Jörg.
-- 
< Mr X.> jo: contact an admin to mount it for you
< jo> The admin is not, well how should I say it, he isn't very familiar with
      the system. What should I tell my admin, what he should do?
< Mr X.> taking a sun solaris administration course.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Glob qualifier for modification time on directories
  2008-05-27  9:40 Glob qualifier for modification time on directories Jörg Sommer
@ 2008-05-27 11:03 ` Peter Stephenson
  2008-05-27 22:34   ` Jörg Sommer
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2008-05-27 11:03 UTC (permalink / raw)
  To: zsh-workers

=?UTF-8?Q?J=C3=B6rg?= Sommer wrote:
> % echo ${(s.:.)PATH}(Nms-20)
> /home/joerg/bin /usr/lib/ccache /home/joerg/bin /usr/local/bin /usr/bin
> /bin /usr/games /usr/sbin

You're only applying the glob qualifiers to the last entry, unless you
have RC_EXPAND_PARAM set.  Try

% echo ${(s.:.)^PATH}(Nms-20)

or, in fact,

% echo $^path(Nms-20)

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Glob qualifier for modification time on directories
  2008-05-27 11:03 ` Peter Stephenson
@ 2008-05-27 22:34   ` Jörg Sommer
  0 siblings, 0 replies; 3+ messages in thread
From: Jörg Sommer @ 2008-05-27 22:34 UTC (permalink / raw)
  To: zsh-workers

Hallo Peter,

Peter Stephenson <pws@csr.com> wrote:
> =?UTF-8?Q?J=C3=B6rg?= Sommer wrote:
>> % echo ${(s.:.)PATH}(Nms-20)
>> /home/joerg/bin /usr/lib/ccache /home/joerg/bin /usr/local/bin /usr/bin
>> /bin /usr/games /usr/sbin
>
> You're only applying the glob qualifiers to the last entry, unless you
> have RC_EXPAND_PARAM set.  Try
>
> % echo ${(s.:.)^PATH}(Nms-20)

Yes. Now I see the fault. Thanks.

Bye, Jörg.
-- 
Wir leben zwar unter dem gleichen Himmel,
müssen aber nicht zwangsläufig den gleichen Horizont haben.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-27 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-27  9:40 Glob qualifier for modification time on directories Jörg Sommer
2008-05-27 11:03 ` Peter Stephenson
2008-05-27 22:34   ` Jörg Sommer

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).