Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: quoting/escaping file names

by afoken (Chancellor)
on Sep 10, 2014 at 17:46 UTC ( [id://1100191]=note: print w/replies, xml ) Need Help??


in reply to Re^3: quoting/escaping file names
in thread quoting/escaping file names

You want to quote the string properly for your shell.

Perhaps. Or better, avoid the shell and use the list form of system or exec, as documented in perlipc. (Unless, of course, we're talking about Windows, where the quoting rules can differ from program to program because programs are invoked with a single argument string instead of a list of arguments.)

Most likely String::ShellQuote will do what you want.

No. It did not keep its promise in 2005, and despite a minor update, it still does not in 2014. It still lacks support for any shell except that one unnamed and unversioned shell the author tested against. It still lacks proper tests, and it still does not support Windows, DOS, OS/2, and any other OS that does not exclusively use a bourne shell.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^5: quoting/escaping file names
by ikegami (Patriarch) on Sep 18, 2022 at 21:15 UTC

    The fact that it only supports one family of shells is not a bug.

        Already working on it. If unclear there's a problem mentioned there either, but maybe there is buried somewhere in depths of that post.

        Done. You're one to talk with all your fearmongering spam!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-20 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found