in reply to Re: LICENCE file
in thread LICENCE file
Yes. I've noticed most documentation in the Perl world tends to assume Unix shell quoting ... so I've gotten used to translating to Windows CMD quoting when running under Windows. It's got more complicated in recent years with Microsoft exhorting you to prefer PowerShell to CMD.
Bod, which command shell do you use on Windows: COMMAND.COM or CMD.EXE or PowerShell or something else? The single quotes should work with PowerShell (and Cygwin).
To illustrate the differences, I ran this trivial Perl program print-args.pl on Ubuntu bash, Windows CMD, and Windows PowerShell:
use strict; use warnings; for my $arg (@ARGV) { print "arg=:$arg:\n"; }
Ubuntu bash:
$ perl print-args.pl 'Hello Bod' arg=:Hello Bod:
Windows CMD:
C:\Bod> perl print-args.pl 'Hello Bod' arg=:'Hello: arg=:Bod':
Windows PowerShell:
PS C:\Bod> perl print-args.pl 'Hello Bod' arg=:Hello Bod:
See also: Comparison of command shells
Updated: added Cygwin reference
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LICENCE file (single vs double quotes)
by kcott (Archbishop) on Oct 16, 2023 at 12:23 UTC | |
by eyepopslikeamosquito (Archbishop) on Oct 17, 2023 at 00:04 UTC | |
by kcott (Archbishop) on Oct 17, 2023 at 01:52 UTC | |
by eyepopslikeamosquito (Archbishop) on Dec 12, 2023 at 12:31 UTC | |
by kcott (Archbishop) on Dec 12, 2023 at 17:11 UTC | |
|
Re^3: LICENCE file (single vs double quotes)
by Bod (Parson) on Oct 16, 2023 at 14:13 UTC |