About this list Date view Thread view Subject view Author view Attachment view

From: Hans Ulrich Niedermann (vserver_at_n-dimensional.de)
Date: Fri 07 Jan 2005 - 12:41:23 GMT


Enrico Scholz <enrico.scholz_at_informatik.tu-chemnitz.de> writes:

> Hans Ulrich Niedermann <vserver_at_n-dimensional.de> writes:

>> For _dietlibc_ver_min="27-7", the line
>>
>> _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
>>
>> doesn't do what it is supposed to do.
>
> What do you expect there?
>
> | $ _dietlibc_ver_min="27-7"
> | $ echo ${_dietlibc_ver_min%%[!0-9]*}
> | 27
>
> seems to be the correct result.

Exactly, if it is in the shell. But due to [] being the m4 quotes, you
have to write that as

    dietlibc_ver_min=${_dietlibc_ver_min%%[[!0-9]]*}

in m4/ensc_dietlibc.m4.

(I have now tested to verify how it went wrong instead of just stating
it doesn't work :)

Gruß,

Uli


_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 07 Jan 2005 - 12:45:29 GMT by hypermail 2.1.3