Bastien ROUCARIES <roucaries.bast...@gmail.com> 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 (r...@stanford.edu)             <http://www.eyrie.org/~eagle/>

Reply via email to