http://www.perlmonks.org?node_id=1043145


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.