On Mon, Jul 17, 2017 at 8:18 PM, ToddAndMargo <[email protected] <mailto:[email protected]>> wrote:But this does not:my $proc = run('zip', '-j', "$ZipLog", "$CimLog", "$LogFile", "$DiagDir/*", :out); warning: name not matched: /opt/xxx/yyy/zzz/diags/* What am I doing wrong?
On 07/17/2017 05:45 PM, Brandon Allbery wrote:
run() does not use a shell. The shell is what understands that * and expands it to a list of matching files. If you want that expansion, use shell() or use Perl 6 to get the directory contents separately and send it along as a list (see https://docs.perl6.org/type/IO::Path#routine_dir).
Now I understand. Thank you!
