Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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>".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://439519]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-09-21 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (252 votes). Check out past polls.

    Notices?