Discussion: Unix Shell astericks
Afficher un message
Vieux 25/03/2008, 16h01   #4
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Unix Shell astericks

2008-03-24, 19:47(-05), James Michael Fultz:
> * ushi <azhar.rao@gmail.com>:
>> why do you use two "**" together,
>>
>> For Eample:
>> app.config.excludes.prod=**/log4j.dev.xml **/log4j.qa.xml **/
>> log4j.stg.xml **/log4j.ito.xml

[...]
> Zsh interprets '**/' as a globbing operator that expands recursively. I
> am unaware of other usages, but they may exist.


**/ in zsh is a shortcut for (*/)# (that is 0 or more level of
subdirectories)

Recent versions of ksh93 also support ** with set -G, but it's
slightly different (** in ksh93 is **/* in zsh for instance, so
** is more like "any path"). ksh93 doesn't support *** (for
recursing into symlinks to directories as well) nor globbing
qualifiers.

In other shells, ** is like *.

--
Stéphane
  Réponse avec citation
 
Page generated in 0,14672 seconds with 9 queries