You might try this:
$ perl -e 'die "error: @ARGV[0]" if @ARGV[0] =~ /\\/' foo\\bar error: foo\bar at -e line 1.
In reply to Re: [SHELL] Detect backslash in command line args
by Laurent_R
in thread [SHELL] Detect backslash in command line args
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |