Question about expr

Manish Jain invalid.pointer at
Sat Mar 27 06:31:23 UTC 2010

Hello all,

I am used to the normal GNU-version of expr (also available on Solaris) 
and much prefer it over the FreeBSD version. The GNU version allows 
internal commands like length, substring and others which make it much 
easier to work with. Is there any way I can replace FreeBSD's native 
expr with the GNU version ? Since I believe expr does not normally ship 
as a shell-builtin, I don't think the shell can of much help in the matter.

Actually, I think it might not be a bad idea to place a port of GNU-expr 
in the ports directory. This would allow a lot a scripts to be readily 
portable to multiple environments.

Thanks for any help.


Manish Jain
invalid.pointer at

More information about the freebsd-questions mailing list