help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Char to use as separator


From: Paul D. Smith
Subject: Re: Char to use as separator
Date: Thu, 16 Mar 2006 15:24:36 -0500

%% "PATTON, BILLY \(SBCSI\)" <address@hidden> writes:

  pb> I build targets with _  as separators

  pb> <flow>_<proj>_<bb>_<topic>_<target>

  pb> Problem is, any of these names may have a _ in their name
  pb> So separating on _ is a problem
  pb> So many of the chars are special to either shell or makefile

  pb> I've considered using __ that 2 under scores as a separator
  pb> Will this cause a problem within make or sh?

Certainly not.  Make will be happy with any character in a filename
other than: ' ' (space), ':', ';', '#', '$', '='.  And, you can even use
some of those but it gets to be a pain to escape them.

The shell is happy with any character as well, although some are special
and if you choose one you'll have to be careful with quoting; things
like '#', '$', '|', ';', '*', '?', '[', etc.


Certainly double-underscores will work, but what about using dashes (-)
instead?  Or, something else like "+" etc.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]