doubled double quote as argument
Brought to you by:
bozho
the command line
c:\console2\console.exe -r "C:\Perl64\bin\perl.exe dosomething.pl"
is working.
but if for some reason the script in argument (or an argument given to the script in the real case) has space character, then, normally we have to double the double quotes.
c:\console2\console.exe -r "C:\Perl64\bin\perl.exe ""do something.pl"""
this doesn't work, the problem is that console don't give the argument "do something.pl" to perl.exe but only "do"...
This is not a Console bug, this is an issue with quotes on Windows.
Try "/k perl.exe \"do something.pl\""
Bonus: -r value gets added to the startup line of your shell. For example, if your tab has an empty Shell field and you open it with -r "something", your tab will open with
%COMSPEC% "something"
Since cmd.exe needs /c or /k to execute a command on start, you need to have -r "/k something".
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
I have the same problem and already found the solution of comment Date: 2011-11-03 04:38:25 from akirill by myself. However this does only work for exactly one parameter. If one has multiple parameteres wir whitespaces one cannot quote it with masked quotes \" again. Example:
"/k perl.exe \"do something.pl\" \"path for perl script with whitespace in path\""
does not work! I think I have tried all masking techniques for houres now! Please change priority of this bug and support arbitrary number of parameters with whitespace in it by masked quotes. Thanks a lot!
Last edit: Anonymous 2014-05-08
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
This issue is related to https://sourceforge.net/tracker/?group_id=43764&atid=437335
Last edit: Anonymous 2014-05-08