-Original Message-
From: ToddAndMargo [mailto:toddandma...@zoho.com]
Sent: Monday, July 17, 2017 8:29 PM
To: perl6-users
Subject: Re: zip mystery
-Original Message-
From: ToddAndMargo [mailto:toddandma...@zoho.com]
Sent: Monday, July 17, 2017 8:19 PM
To:
On Mon, Jul 17, 2017 at 8:18 PM, ToddAndMargo > 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
On Mon, Jul 17, 2017 at 8:18 PM, ToddAndMargo 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?
>
run() does not use a
-Original Message-
From: ToddAndMargo [mailto:toddandma...@zoho.com]
Sent: Monday, July 17, 2017 8:19 PM
To: perl6-users
Subject: zip mystery
Hi All,
This runs:
my $proc = run('zip', '-j', "$ZipLog", "$CimLog", "$LogFile",
"$DiagDir/BlankFile.txt", :out);
And
Hi All,
This runs:
my $proc = run('zip', '-j', "$ZipLog", "$CimLog", "$LogFile",
"$DiagDir/BlankFile.txt", :out);
And this also works (bash)
zip -j eraseme.zip /opt/xxx/yyy/zzz/diags/*
But this does not:
my $proc = run('zip', '-j', "$ZipLog", "$CimLog", "$LogFile",
"$DiagDir/*", :out);
And this is another reason for the Grammar solution: it lets you do just
what is needed, in a constrained environment so you don't have any risk
(unless you do something questionable in the Grammar, but then that's on
you.)
On Mon, Jul 17, 2017 at 6:15 AM, Brent Laabs wrote:
Just to make it clear, do not use EVAL() ever on untrusted user input. In
the example I wrote, if the string contained a '>', anything after that
point would be executed. While it works, it's a bad idea to use it.
On Mon, Jul 17, 2017 at 2:17 AM, ToddAndMargo wrote:
>
On Sun, Jul 16, 2017 at 11:34 PM, ToddAndMargo > wrote:
On 07/16/2017 07:48 PM, Brent Laabs wrote:
$ perl6
> my $x='ls -al "Program Files" "Moe Curly Larry"';
ls -al "Program Files" "Moe Curly Larry"
> On 17 Jul 2017, at 11:08, Brent Laabs wrote:
> All of this is to say that I wish the Str.words method had a way of applying
> Perl 6 quoting rules as if it were the qww operator.
Wouldn’t that be either .split or .comb?
Liz