On 3 Dec 1999, Jean-Marc Lasgouttes wrote:

> >>>>> "Jules" == Jules Bean <[EMAIL PROTECTED]> writes:
> 
> Jules> On 3 Dec 1999, Jean-Marc Lasgouttes wrote:
> >>  What remains to do now is to find all cases where stringe file
> >> names (containing spaces or quotes for example) create problems to
> >> programs other that latex. I did a lot of experiments, but all is
> >> not done.
> 
> Jules> Remember of course that such programs are broken.
> 
> Jules> Maybe jsut report a bug to the author (and documetn: XYZ
> Jules> feature won't work if you have spaces in your file name, since
> Jules> ABC program doesn't like them).
> 
> That's not exactly what I meant. I should have said: 
>   What remains to do now is to find all cases where strange file
>   names (containing spaces or quotes for example) create problems 
>   _due_to_the_way_we_invoke_them_

Do you mean you're passing the arguments as one big string, not as
separate arguments?  This is dangerous, it relies on the quoting
characteristics of the user's SHELL.

It's better to use functions like execl or execv.

> 
> What happens is that there are many places where QuoteName should be
> invoked and is not. Finding them is not very difficult: create a file
> with spaces and quotes in name, and see what happens when you try to
> run latex, xdvi, gs, tth, fax stuff, etc.

Indeed.

Jules

/----------------+-------------------------------+---------------------\
|  Jelibean aka  | [EMAIL PROTECTED]         |  6 Evelyn Rd        |
|  Jules aka     | [EMAIL PROTECTED]              |  Richmond, Surrey   |
|  Julian Bean   | [EMAIL PROTECTED]        |  TW9 2TF *UK*       |
+----------------+-------------------------------+---------------------+
|  War doesn't demonstrate who's right... just who's left.             |
|  When privacy is outlawed... only the outlaws have privacy.          |
\----------------------------------------------------------------------/

Reply via email to