Subject:
|
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Fri, 13 Feb 2004 00:38:52 GMT
|
Viewed:
|
4322 times
|
| |
 | |
In lugnet.cad.dev, Don Heyse wrote:
> In lugnet.cad.dev, Lars C. Hassing wrote:
> > In lugnet.cad.dev, Orion Pobursky wrote:
> > > I like this idea. Can you support delimiting paths by ';' instead of '|'? ';'
> > > is more in line with the delimitation in the PATH environment varible.
> >
> > Sure, I just chose | because ; is allowed in filenames.
>
> Hey, you're right. I wonder how the Windows PATH variable handles
> that. Probably it just doesn't work...
>
> Anyhow, the unix PATH variable uses ':' as the delimiter (at least
> with the bash shell). So maybe '|' is better, even though you need
> to use quotes when setting the environment variable to avoid it being
> interpreted as a pipe. Is there any other character that's illegal
> in a directory name, but doesn't require quotes to get it into an
> environment variable?
Perhaps the delimiter character needs to be platform dependent? I realize that's not
an ideal solution for programs. But I don't think people will be shipping LDraw
search path settings between OS's, so it would be alright for users.
I don't think using the pipe character would be a good choice, for Windows or for
Linux (and Mac I guess). For Windows (and DOS), the semi-colon has a *strong*
precedent for use in path lists / search paths. Colon would not work at all for
Windows, but seems to be the character of choice for path lists in Linux/Mac.
Steve
|
|
Message has 1 Reply:  | | Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
|
| (...) I disagree with the idea of platform specific solutions, especially since we're now thinking about including extra information in the list (such as directives to hide certain paths) to make it more compatible with the list used by MLCAD. If (...) (21 years ago, 13-Feb-04, to lugnet.cad.dev)
|
Message is in Reply To:
 | | Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
|
| (...) Hey, you're right. I wonder how the Windows PATH variable handles that. Probably it just doesn't work... Anyhow, the unix PATH variable uses ':' as the delimiter (at least with the bash shell). So maybe '|' is better, even though you need to (...) (21 years ago, 11-Feb-04, to lugnet.cad.dev)
|
132 Messages in This Thread: (Inline display suppressed due to large size. Click Dots below to view.)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|