[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: chat script & ppp



Bob Easton wrote:
> On  2 Apr 98 at 9:33,  "Jas" <dhaliwal pathcom com> wrote:
> > How can I get it to take the character ">" and not think its a redirection?
>
> Well, I'm a newbie too, but my first guess would be to try "ervice\>" to
> escape the redirection, as below:

Single quotes (''), double quotes (""), and backslash-escapes (\)
are the three main tools when you want to force the shell to treat
an argument in a special way.  They all do different things and
choosing which meets your needs is sometimes a matter of
experimentation.
For the official spiel on their usage and results, read the manpage
on your shell or at least 'sh' ("man sh").

In your particular case, backslash escaping the '>' will work,
but more robust would be to single quote ('') all of your arguments.
They should then not be parsed by the shell at all.

	- Kevin Colby
	  kevin marcal com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]