> *From:* ToddAndMargo via perl6-users <perl6-users@perl.org>
> *Sent:* Tuesday, February 25, 2020 11:12 AM
> *To:* perl6-users@perl.org <perl6-users@perl.org>
> *Subject:* Re: qqx with quotes
>>> On Mon, Feb 24, 2020 at 4:01 PM ToddAndMargo via perl6-users
>>> <perl6-users@perl.org <mailto:perl6-users@perl.org>> wrote:
>>>
>>>     Hi All,
>>>
>>>     Windows 7
>>>
>>>     In the following
>>>
>>>     @Result = qqx { C:/Windows/System32/fsutil.exe usn readdata
>>>     \"$FileName\" }.lines;
>>>
>>>
>>>     $FileName needs to be in quotes as it can have
>>>     spaces in it.
>>>
>>>
>>>     The following did not work:
>>>
>>>     \"$FileName\"
>>>     "$FileName\
>>>     $FileName
>>>
>>>     What am I doing wrong, this time?
>>>
>>>     Many thanks,
>>>     -T


On 2020-02-26 14:16, Andy Bach wrote:
@Result = qqx { C:/Windows/System32/fsutil.exe usn readdata \"$FileName\" }.lines;

Doesn't windows do something special for files with spaces in them?  Hm,
$ type "hi mom" > "test 1"
$ dir test<F8>
$ dir "test 1"

but, you're right, I couldn't find a combination of dbl, single, q, qq, qqx, qx that'd let me run
dir "test 1"
via qqx or qx - windows is funny that way, I guess.

Hi Andy,

Thank you for the confirmation!  For once, it wasn't me.
I wonder if this is a bug in Raku?

I will try the Shell command.  No need for
quotes in that.

-T

Reply via email to