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 / 9488
9487  |  9489
Subject: 
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 11 Feb 2004 17:06:14 GMT
Viewed: 
3664 times
  
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?

By the way, I like the idea of the two variables.  Were you thinking
of searching all subdirs in these directories, or just the subdirs
explicitly mentioned in the parts files like 48 and S?  Or were you
expecting the additional directories to contain the P, PARTS, and
MODELS directories, or some subset of them?

Don



Message has 2 Replies:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
(...) I think old Mac's (before MacOSX) use : as directory delimiter. (...) Only the specified directories. It's up to you to specify e.g. LDRAWPOSTDIRS=C:\Som...eDir\PARTS /Lars (20 years ago, 11-Feb-04, to lugnet.cad.dev)
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
(...) 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 (...) (20 years ago, 13-Feb-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
(...) Sure, I just chose | because ; is allowed in filenames. /Lars (20 years ago, 10-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