in reply to [SHELL] Detect backslash in command line args
You might try this:
$ perl -e 'die "error: @ARGV[0]" if @ARGV[0] =~ /\\/' foo\\bar error: foo\bar at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [SHELL] Detect backslash in command line args
by syphilis (Archbishop) on Jul 08, 2013 at 23:48 UTC | |
by Laurent_R (Canon) on Jul 09, 2013 at 06:17 UTC | |
by Anonymous Monk on Jul 09, 2013 at 06:39 UTC |