Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why are these behaviors different?
- X-seq: zsh-users 21615
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: why are these behaviors different?
- Date: Sat, 4 Jun 2016 11:10:37 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=PeCtjPCAsk5xvSzIXc92Zbei3u1eWbG1T9isL0fwYVE=; b=qtS+MG2WUn1+RwF5irsVhm4iLjaEeqjchtKw+imZq17r9MPeJQmXyqZ/u+exejBYGs 7qfBZ6td1xVMq2jilTs6y7HxfiNpdMxqIbRREAFX3GWx1yoLKcOOl5VuXFhk7oHik3dd uH+cre5VujGrjuMS+TZIgGQ3LYio1IgbwHEexkSymfl6mkw/RBhGGBj2FVl+b3oE1JYe tG+R3/gY2Ip8JOoGDCOaj86AfcHsLr1gkGGS1mHxb2+fIyOUFMzMDSxUUCqKj2MlrVSj gtChVkKsWHYoC6g0OHK+erL5uiEtbiBeLMex45LvTqraUb127ni1gZW8W5T1eSpvDndj iBEA==
- In-reply-to: <XnsA61DBDFBD22B2davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA61DBDFBD22B2davidrayninfocouk@80.91.229.13>
On Jun 4, 5:40pm, zzapper wrote:
}
} ls *.{txt,php}(.om[1])
} fre.php fre.txt ### returns 2 files
} ls *.(txt|php)(.om[1])
} fre.php ### expected single file
Brace expansion is separate from, and occurs before, filename generation.
So the first case is equivalent to
ls *.txt(.om[1]) *.php(.om[1])
Messages sorted by:
Reverse Date,
Date,
Thread,
Author