>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:

>> I have implemented support for $.@, which is [$1].[$2]. etc. (`.'
>> is the separator, defaults to comma), and for $.*, which is
>> smash($1).smash($2). etc., where `.' defaults to `:', and `smash'
>> singles out all the white spaces.

Alexandre> Amazing.  Truly amazing.  Great work :-)

Nah, you great seducer, you know how to talk to m4 programmers :)

I was also thinking of something like ${::::}@ and the like, this
would allow to use something way simpler than balanced [ ] to parse
these guys.  I guess one can split() in Perl with a separator such as
`:::::'?

>> Bwahaha :) So I think we will be able to start using this in
>> Automake, no?

Alexandre> Most definitely :-)

yeah, great :)

>> PS/ Beware there is a literal ^Q in it, which you need if you want
>> this to work properly.  BTW, is it normal that bash does not split
>> around ^A?  I found nothing like this in the doc:

Alexandre> I don't think it's good practice to embed such weird
Alexandre> characters in shell scripts.  I'd rather expand the trace
Alexandre> commands into $trace_m4 as they come in.

I would like to avoid this because there are two cases for each
option: you have a --foo=bar or a --foo bar.

In fact, can someone teach me (point me to a good example) how to
split strings such as

list="'first element' 'second' 'third one'"
for elt in $list

How can we split that?  That would make it simpler and better than ^Q.

Akim

Reply via email to