Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Escaping characters in one-liners

by Anonymous Monk
on Mar 15, 2005 at 01:23 UTC ( #439519=note: print w/ replies, xml ) Need Help??


in reply to Escaping characters in one-liners

Some shells let you "escape" single quotes; others don't. I remember being confused enough about csh's quoting rules that I switched to bash; which at the time and on the systems I was using were documented in a way that made sense to me. In particular, remembering to escape the '!' symbol was annoying until I switched; even wrapping it in single quotes didn't stop history expansion.

The bottom line is that you have to read your shell's manpage. If you don't like what you read, switch shells. If you can't switch shells, well, grumble, and deal with what you've got.

The best reference I can give you is to type "man <your_shell_name_here>".


Comment on Re: Escaping characters in one-liners

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-01 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (15 votes), past polls