autoconf
[Top][All Lists]
Advanced

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

Re: is $* the complete path?


From: Alexandre Oliva
Subject: Re: is $* the complete path?
Date: 15 Dec 2000 07:50:29 -0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

On Dec 15, 2000, Assar Westerlund <address@hidden> wrote:

> You don't happen to have one for basename too? :-)

Basename is far simpler:

% echo "$pathname" | sed 's,.*/,,'

For extra credit, you may want to cover DOS pathnames too, but I'll
leave that as an exercise for the reader :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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