#15 doubled double quote as argument

pending
nobody
None
5
2011-11-03
2011-11-03
Anonymous
No

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"...

Discussion

  • Kirill

    Kirill - 2011-11-03

    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".

     
  • Kirill

    Kirill - 2011-11-03
    • status: open --> pending
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-03-09

    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
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-03-09
     
    Last edit: Anonymous 2014-05-08

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks