To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9500
9499  |  9501
Subject: 
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 13 Feb 2004 00:38:52 GMT
Viewed: 
3891 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 (...) (20 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 (...) (20 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR