I don't have a windows system to test, but in all the examples shown I did
not see:

qqx{ C:/Windows/System32/fsutil.exe usn readdata "$FileName" };

which is how I would have expected to write the command.

On Thu, 27 Feb 2020 at 09:49, ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

>  > *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
>


-- 
Norman Gaywood, Computer Systems Officer
School of Science and Technology
University of New England
Armidale NSW 2351, Australia

ngayw...@une.edu.au  http://turing.une.edu.au/~ngaywood
Phone: +61 (0)2 6773 2412  Mobile: +61 (0)4 7862 0062

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Reply via email to