On Sun, Mar 31, 2013 at 6:33 PM, Russ Allbery <r...@stanford.edu> wrote:
> 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" : '.*/\([^/]*\)'`

It does not work with windows unfortunatly...

> --
> Russ Allbery (r...@stanford.edu)             <http://www.eyrie.org/~eagle/>

Reply via email to