@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.
________________________________
From: ToddAndMargo via perl6-users <[email protected]>
Sent: Tuesday, February 25, 2020 11:12 AM
To: [email protected] <[email protected]>
Subject: Re: qqx with quotes
>> On Mon, Feb 24, 2020 at 4:01 PM ToddAndMargo via perl6-users
>> <[email protected] <mailto:[email protected]>> 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-25 08:29, Paul Procacci wrote:
> The following works on FreeBSD:
>
> my $fn = "file name";
> say qqx { ls -l "$fn" };
>
> Not sure why this would be any different on Windows.
What version are you running?