Bastien ROUCARIES <[email protected]> writes: > Any idea to get portable basename shell command ?
Personally, I just use basename, but the Autoconf manual does say:
`basename'
Not all hosts have a working `basename'. You can use `expr'
instead.
The manual didn't list an alternative, but some searching (I'm not
horribly familiar with the regex syntax in expr) says:
`expr "//$file" : '.*/\([^/]*\)'`
--
Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>
