Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: [SHELL] Detect backslash in command line args

by soonix (Monsignor)
on Jul 08, 2013 at 17:18 UTC ( #1043145=note: print w/replies, xml ) Need Help??


in reply to Re: [SHELL] Detect backslash in command line args
in thread [SHELL] Detect backslash in command line args

Yes, that's one of the bigger differences between the MS family and the Unix family. In Unix it's the shell's task to do command line parsing, globbing, etc. while COMMAND.COM and CMD.EXE just call the program and let it do all the rest. So, the answer to the OP: in Unixish systems, there isn't.
  • Comment on Re^2: [SHELL] Detect backslash in command line args

Replies are listed 'Best First'.
Re^3: [SHELL] Detect backslash in command line args
by Preceptor (Deacon) on Jul 08, 2013 at 18:59 UTC

    You can probably demonstrate that effect with:

    echo comma\nd with backslash | cat -v

    But the shell will parse the backslash - so in one sense, you don't actually _need_ to detect it, because it isn't there any more by the time your script uses it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2017-12-13 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (345 votes). Check out past polls.

    Notices?