Paul Eggert <[EMAIL PROTECTED]> writes:
|From: Akim Demaille <[EMAIL PROTECTED]>
|Date: 06 Mar 2000 10:07:37 +0100
...
|#if HAVE_STDLIB_H
|# include
|#else
|char *malloc ();
|#endif
|
|or maybe shall we check that malloc is declared?
|
| I wouldn't worry about that
| Am Mon, 06 Mar 2000 schrieb Akim Demaille:
| >| OK, how about this one?
| >
| >Sorry, I don't mean to be pain, but I still have some comments :) Do
| >the other people consider I am being painful? (Real question)
|
| A real pein :-).
:)
| >Still, my comment would be that
| >
| >| #ifdef __c
> "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 sp
> "Glenn" == Glenn Chambers <[EMAIL PROTECTED]> writes:
Glenn> Akim Demaille writes:
>> #ifdef and #ifndef are banished from Autoconf, use only #if and#if
>> !.
Glenn> Interesting trivium: unless I mis-remember, the variant of the
Glenn> C compiler used on Bell Lab's "Plan 9" operating syst
On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote:
: 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
I managed to make this work:
eval set $list
while test $# -gt 0; do
ech
Akim Demaille <[EMAIL PROTECTED]> writes:
> 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 `:'?
Yup.
--
Russ Allbery ([EMAIL PROT
On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote:
: 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
This too:
eval "for elt in $list; do echo \"\$elt\"; done"
Lars J
| On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote:
| : 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
|
| I managed to make this work:
|
| eval set $list
| while
Could you send a patch for this one too?
Akim