[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: busybox still too bloated

Erik Andersen <andersen@codepoet.org> writes:

> expr can be replaced with posix shell expressions.

This is not true in general, as there is no support for regular
expressions in POSIX sh.

  $ expr "abcdef" : '[ab]*\(.\).*'

Most of the time you can rewrite the code to use parameter
substitution or the arithmetic builtins, so this is not a serious
objection, just a FYI.

Kjetil T.

Reply to: