tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bmake: how about :tr/CHARS/REPL/[1g]
On Thu, Mar 26, 2009 at 06:57:43PM +0000, David Holland wrote:
> 'g' does not make sense for tr, and S doesn't default to '1', either.
>
> (For those following along at home, 'g' on substitutions means to
> substitute all matches in each word, like the g flag in sed
> substitutions. '1' means to modify only the first word in the variable
> and skip the others entirely.)
>
> I'm not entirely convinced that anything really uses the '1' flag, but
> it's Always Been There (TM).
I meant to also say that having a tr substitution in make seems
perfectly reasonable.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index