bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faillure to autogenerate file on hpux


From: Russ Allbery
Subject: Re: Faillure to autogenerate file on hpux
Date: Sun, 31 Mar 2013 10:33:36 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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" : '.*/\([^/]*\)'`

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]