Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: preserve quotes after $0 interpolation

by roboticus (Chancellor)
on Dec 13, 2019 at 03:49 UTC ( #11110048=note: print w/replies, xml ) Need Help??

in reply to preserve quotes after $0 + @ARGV interpolation


I'd be surprised if you can find a satisfactory way to do it. If you try NetWallah's suggestion of slogging through history, you may find that the user put a blank before the command and has history suppressing lines beginning with blanks. The user could be running in a number of different shells, so shell trickery could be similarly difficult. So knowing which quotes to use, and/or whether there's any path prefix is added would be quite a trick.


When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: preserve quotes after $0 interpolation

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-03-05 23:56 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (115 votes). Check out past polls.