On Sat, 4 Dec 1999, Arnd Hanses wrote:

> On 03 Dec 1999 15:00:47 +0100, Jean-Marc Lasgouttes wrote:
> 
> >There were however a few places where spaceless was actually used to
> >avoid spaces. I replaced it by a new function QuoteName() which adds
> >single quotes around the argument:
> >aa   ->      'aa'
> >JMarc's file ->      'JMarc\'s file'
> >
> >(now that I think if it, it probably breaks when a quote is already
> >backslashed %-|)
> sic!
> >These quotes are of course not good for OS/2. So I'd be glad if an
> >alternative implementation could be given in this case. Otherwise,
> >I'll just make the function do nothing for OS/2.
> 
> Why quote at all? Forced underscores for spaces aren't so bad, are
> they? Well, as I said, cmd.exe only uses " (double) instead of '
> (single) quotes to hide every special meaning. Most people using LyX/2
> will use bash, pdksh or ash instead of cmd.exe. There was already a
> test to check which is used, something like 
> 
>       if (strstr(getenv("EMXSHELL"), "cmd.exe") ||
> strstr(getenv("EMXSHELL"), "4os2.exe") ) 
> 
> then use special provisions, else don't. You can grep for '4os2' or
> 'cmd'. 

I know I sound like a scratched record, but this is exactly my point.  We
have two choices:

1) Use shells to run programs, and adapt to the bizarre and stupid
variation in acceptable syntax and acceptable characters.

2) Use the exec() family of calls, and pass parameter as is.

2) seems more elegant to me... 

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