Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Splitting up quoted/escaped command line arguments

by choroba (Canon)
on Feb 11, 2014 at 20:46 UTC ( #1074504=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Splitting up quoted/escaped command line arguments
in thread Splitting up quoted/escaped command line arguments

'a'\''b' Seems to break update 4.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^4: Splitting up quoted/escaped command line arguments
Download Code
Re^5: Splitting up quoted/escaped command line arguments
by Tommy (Chaplain) on Feb 11, 2014 at 21:25 UTC

    That's ok with me, because in Linux-ese (bash/sh/ksh), you can't escape a single quote. It's one of the most annoying things and I find it reeeally bothersome. This is why I don't try to accommodate for a "\'" sequence in update 4. Despite the fact that I don't want these commands to go to the shell, they are being written by people who deal with the shell almost exclusively: system admins. This much I can assume: that they won't be putting in commands that have syntax which outright fails to run on its own.

    Tommy
    A mistake can be valuable or costly, depending on how faithfully you pursue correction
      Yes, you can escape a single quote - outside single quotes.
      $ echo 'a'\''b' a'b
      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

        ...But that's just pure evil =D

        Tommy
        A mistake can be valuable or costly, depending on how faithfully you pursue correction

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-06 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls