system command
Kenneth Brody
kenbrody at bestweb.net
Mon Oct 31 18:14:43 PST 2005
Quoting Fairlight (Mon, 31 Oct 2005 20:48:00 -0500):
[...]
> > Remember, in order to do something like:
> >
> > echo '\033'
> >
> > you need to escape the backslash to get the shell to see it:
> >
> > sh -c "echo '\\033'"
> >
> > (Note: I have not actually verified the above, as I'm not on a *nix
> > box at the moment.)
>
> Not from what I'm seeing. The point in fact is that his single
> backslash in "\033" shows up in `less` as an actual binary ESC code.
> So...no, it doesn't -seem- that you need to escape it an extra level.
[...]
Let's make this "simpler". Try echoing a backslash.
>From the command prompt:
echo \\
But, in order to call the shell to echo a backslash you need:
sh -c "echo \\\\"
==========
$ echo \\
\
$ sh -c "echo \\"
sh: -c: line 2: syntax error: unexpected end of file
$ sh -c "echo \\\\"
\
$
==========
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list