On Sun, Mar 31, 2013 at 6:33 PM, Russ Allbery <[email protected]> wrote: > 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" : '.*/\([^/]*\)'`
It does not work with windows unfortunatly... > -- > Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>
