Re: any shell that doesn't expand \t or \n in it's arguments?
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 03/30/04
- Next message: Bill Seurer: "Re: $$ WHY DEMOCRATS WILL VOTE FOR BUSH $$"
- Previous message: sun: "Re: $$ WHY DEMOCRATS WILL VOTE FOR BUSH $$"
- In reply to: jwk: "any shell that doesn't expand \t or \n in it's arguments?"
- Next in thread: jwk: "Re: any shell that doesn't expand \t or \n in it's arguments?"
- Reply: jwk: "Re: any shell that doesn't expand \t or \n in it's arguments?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 09:31:17 -0500
In article <slrnc6imuc.7in._hate_spam_thunder7@middle.of.nowhere>,
jwk <_hate_spam_thunder7@xs4all.nl> wrote:
> I have a program that calls a script to print files, both on windows and
> on unix systems.
>
> Because of the windows systems, one argument to the script is like this:
>
> \\host\queue
>
> Depending on the name of queue, this makes the script on unix go
> haywire:
>
> \x is '\' 'x', but \t becomes '<tab>'
>
> is there any way to start a shell which prevents this horrible mess?
> The only alternative is to rename all my print-queues :-(
AFAIK, none of the common shells automatically translate \t and \n. If
any translation is done, it's by individual commands, e.g. "echo". They
generally provide a way to suppress it, or you must escape the
backslashes (e.g. change \t to \\t before passing the string to the
command).
If you show the script, perhaps we can provide more detailed guidance.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Bill Seurer: "Re: $$ WHY DEMOCRATS WILL VOTE FOR BUSH $$"
- Previous message: sun: "Re: $$ WHY DEMOCRATS WILL VOTE FOR BUSH $$"
- In reply to: jwk: "any shell that doesn't expand \t or \n in it's arguments?"
- Next in thread: jwk: "Re: any shell that doesn't expand \t or \n in it's arguments?"
- Reply: jwk: "Re: any shell that doesn't expand \t or \n in it's arguments?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|