system command
John Esak
john at valar.com
Mon Oct 31 21:26:41 PST 2005
You know... I think you have run me through this a few times before in the
past 20 years or so... I might as well not even *try* and remember it. Of
all the strangest things... this ranks pretty high up there. :-) I could
not remember any of this when Mark signed into the room to ask about it... I
kept thinking we used to get around this with spaces somehow. :-)
John
> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Kenneth
> Brody
> Sent: Monday, October 31, 2005 9:15 PM
> To: Fairlight
> Cc: filepro-list at lists.celestial.com
> Subject: Re: system command
>
>
> 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
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list