Re: Portability issue

2004-08-09 Thread DervishD
Hi Paul :) * Paul Eggert <[EMAIL PROTECTED]> dixit: > You need backslashes in front of the braces, though. Yes, I knew, thanks :) In any case, the rest of the script won't work in a non-SUS compliant environment, so strictly speaking this is not a portability issue. Al

Re: Portability issue

2004-08-08 Thread Paul Eggert
DervishD <[EMAIL PROTECTED]> writes: > expr substr "x$string" $tmpindex 1 > > If I need to translate this in a pattern matching expression, I > must calculate the number of 'dots', because I'm not sure if the > '{N}' syntax (to match exactly '{N}' times) is portable enough. You're right t

Re: Portability issue

2004-08-08 Thread DervishD
Hi Paul :) * Paul Eggert <[EMAIL PROTECTED]> dixit: > > I would like to know (if you have such information, of course) which > > 'expr's out there support 'substr' expressions in addition to the > > GNU coreutils one, of course. > Sorry, haven't a clue. Well, thanks anyway :) > But you

Re: Portability issue

2004-08-07 Thread Paul Eggert
DervishD <[EMAIL PROTECTED]> writes: > I would like to know (if you have such information, of course) which > 'expr's out there support 'substr' expressions in addition to the > GNU coreutils one, of course. Sorry, haven't a clue. But you shouldn't need substr: you can always get the equivalent

Portability issue

2004-08-07 Thread DervishD
Hello all :)) I have a portability problem with 'expr'. I have a script that depends on 'expr', namely in the 'substr' expression, and I've noted that this expression is not supported in the SUSv3 standard, so I would like to know (if you have such information, of course) which 'expr's out