Re: Cfengine Help: Re: Cfengine Help: file_select in std lib and anonymous list

2011-05-12 Thread Jesse Becker
On Thu, May 12, 2011 at 11:00:32AM -0400, no-re...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Cfengine Help: file_select in std lib and anonymous list >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,21918,21919#msg-21919 > >Why define a

Cfengine Help: Re: Cfengine Help: file_select in std lib and anonymous list

2011-05-12 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: file_select in std lib and anonymous list Author: jeromebaum Link to topic: https://cfengine.com/forum/read.php?3,21918,21920#msg-21920 The name is a kind of documentation. Plus, it's less work than finding out how to use an anonymous

Cfengine Help: Re: Cfengine Help: file_select in std lib and anonymous list

2011-05-12 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: file_select in std lib and anonymous list Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21918,21919#msg-21919 Why define a variable that will only be used once? ___ Help

Re: Cfengine Help: file_select in std lib and anonymous list

2011-05-12 Thread Jerome Baum
On Thu, May 12, 2011 at 15:51, wrote: > 'names' has to be a list. Is there anyway to pass an anonymous list stead? > For example > # normal way > file_select => by_name( "@{pca_etc_files}"), > > # anonymous way > file_select => by_name( { "patch.*", "pca.*" } ), > What's the use case? i.e. do

Cfengine Help: file_select in std lib and anonymous list

2011-05-12 Thread no-reply
Forum: Cfengine Help Subject: file_select in std lib and anonymous list Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21917,21917#msg-21917 Consider this from the std lib body file_select by_name(names) { leaf_name => { @(names)}; file_result => "leaf_name"; } 'names'