From: Wataru Kagawa <wkagawa@jota.gsc.riken.go.jp>
To: zsh-users@sunsite.dk
Cc: Motoi Washida <a66@h8.dion.ne.jp>
Subject: Re: outputs of _users and _hosts to arrays
Date: Tue, 26 Jul 2005 10:56:06 +0900 [thread overview]
Message-ID: <FCECEA34-165D-4F84-9316-365ECE23E3DB@jota.gsc.riken.go.jp> (raw)
In-Reply-To: <10C0AB35-42EC-4270-8CC0-8ABDA5428A83@h8.dion.ne.jp>
[-- Attachment #1: Type: text/plain, Size: 499 bytes --]
Hi Motoi,
Thanks much for the help.
> Load zsh/parameter module,
>
> % zmodload -i zsh/parameter
>
> and,
>
> % users=( $userdirs[(I)*] )
This works nicely.
>> hosts=( ${$( cat /etc/hosts | cut -d : -f 1,7 | grep -v "#" )//:*/} )
>>
>> to get what I need.
>>
> This has the same problem, but I don't know a better way well.
> Using some functions from Perl or some other language?
Do you mean that the commands inside the parameter expansion may work
on Mac OS X but not on other computers?
[-- Attachment #2: Type: text/html, Size: 1276 bytes --]
next prev parent reply other threads:[~2005-07-26 1:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-24 7:05 Wataru Kagawa
2005-07-24 9:33 ` Bart Schaefer
2005-07-25 5:18 ` Wataru Kagawa
2005-07-25 5:38 ` Wataru Kagawa
2005-07-25 9:15 ` Motoi Washida
2005-07-26 1:56 ` Wataru Kagawa [this message]
2005-07-26 16:23 ` Motoi Washida
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=FCECEA34-165D-4F84-9316-365ECE23E3DB@jota.gsc.riken.go.jp \
--to=wkagawa@jota.gsc.riken.go.jp \
--cc=a66@h8.dion.ne.jp \
--cc=zsh-users@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).