POV-Ray : Newsgroups : povray.unix : Unix povray and filenames with spaces Server Time
31 Oct 2024 19:30:56 EDT (-0400)
  Unix povray and filenames with spaces (Message 1 to 6 of 6)  
From: Peter Popov
Subject: Unix povray and filenames with spaces
Date: 23 Jan 2000 23:59:16
Message: <4n+LOJDMKIDkKTRzruNNkv2OEJZv@4ax.com>
How can I make povray accept a filename which has spaces it it? I've
tried anything from various quote types to using a bash variable to no
avail. Am I missing something?


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: Mark Gordon
Subject: Re: Unix povray and filenames with spaces
Date: 24 Jan 2000 00:12:00
Message: <388BDF9C.226047FC@mailbag.com>
Peter Popov wrote:

> How can I make povray accept a filename which has spaces it it? I've
> tried anything from various quote types to using a bash variable to no
> avail. Am I missing something?

No, on the contrary, I think everyone else has been missing something.
:-P Looks like a bug to me.

-Mark Gordon


Post a reply to this message

From: Nieminen Juha
Subject: Re: Unix povray and filenames with spaces
Date: 24 Jan 2000 04:28:06
Message: <388c1b26@news.povray.org>
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.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Unix povray and filenames with spaces
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

From: TonyB
Subject: Re: Unix povray and filenames with spaces
Date: 24 Jan 2000 13:05:18
Message: <388c945e@news.povray.org>
Ah, yet another feature is revealed... I wish you could put up a list of
what you've done so far... just a tidbit, anything... :)


Post a reply to this message

From: Ken
Subject: Re: Unix povray and filenames with spaces
Date: 24 Jan 2000 13:11:17
Message: <388C9500.860E3DD6@pacbell.net>
TonyB wrote:
> 
> Ah, yet another feature is revealed... I wish you could put up a list of
> what you've done so far... just a tidbit, anything... :)

I think the fact that a majority of the features in MegaPov will be
in v3.5 should be enough for you for the time being :)

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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