[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Faillure to autogenerate file on hpux
From: |
Bastien ROUCARIES |
Subject: |
Re: Faillure to autogenerate file on hpux |
Date: |
Sun, 31 Mar 2013 22:08:17 +0100 |
On Sun, Mar 31, 2013 at 6:33 PM, Russ Allbery <address@hidden> wrote:
> Bastien ROUCARIES <address@hidden> 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 (address@hidden) <http://www.eyrie.org/~eagle/>