Skip to content

qqx not picking up quotes in Windows 7 #166

@ToddAndMargo

Description

@ToddAndMargo

Dear Raku,

C:\NtUtil>perl6 -v
This is Rakudo Star version 2019.03.1 built on MoarVM version 2019.03
implementing Perl 6.d.

qqx is not handling quoted parameters correctly

This is a good baseline with a file name without a space in it:

echo "hi mom" > "test2"
perl6 -e "say qqx { dir test2 };"
 Volume in drive C is DRIVE_C
 Volume Serial Number is 3CDF-1B03
 Directory of C:\NtUtil
02/26/2020  15:24                11 test2
               1 File(s)             11 bytes
               0 Dir(s)  13,269,639,168 bytes free

Here is a file name with a space in it:

echo "hi mom" > "test 1"
perl6 -e "say qqx { dir 'test 1' };"
File Not Found
 Volume in drive C is DRIVE_C
 Volume Serial Number is 3CDF-1B03
 Directory of C:\NtUtil
 Directory of C:\NtUtil

perl6 -e "say qqx { dir \"test 1\" };"
The system cannot find the file specified.

perl6 -e "say qqx { dir 'test2' };"  # note this works without the quotes
File Not Found
 Volume in drive C is DRIVE_C
 Volume Serial Number is 3CDF-1B03
 Directory of C:\NtUtil

Metadata

Metadata

Assignees

Labels

languageChanges to the Raku Programming Language

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions