POV-Ray : Newsgroups : povray.unix : Unix povray and filenames with spaces : Re: Unix povray and filenames with spaces Server Time
28 Jul 2024 16:23:16 EDT (-0400)
  Re: Unix povray and filenames with spaces  
From: Thorsten Froehlich
Date: 24 Jan 2000 10:32:45
Message: <388c709d@news.povray.org>
In article <388c1b26@news.povray.org> , Nieminen Juha 
<war### [at] punarastascstutfi>  wrote:

>   It looks like a deliberately coded bug.
>   Usually you just use the argv[] value which is supposed to be the file
> name. It doesn't matter if it has spaces or not.
>   If you want to make file names with spaces not to work, you would need to
> have lots of trouble parsing the parameter to see if it has a space and to
> split it into two parameters. So you need a lot more work to make it not to
> work than just use it as is.

Well, you just reuse the INI file parser which supports multiple switches
per line. Pass each argv[] as one line to that parser and it "works".
This bug is fixed in POV-Ray 3.5 using " or ' around strings.


       Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.