On Wed, Jul 05, 2000 at 05:12:19PM +0200, Ralf Corsepius wrote: : "Lars J. Aas" wrote: : > : > +# AC_SHELL_DIRNAME(PATHNAME) : > +# -------------------------- : > +# Remove last slash and trailing text. : > +# Not all systems have dirname, so we emulate it with sed. : > +# This macro must be usable from inside ` `. : > +define([AC_SHELL_DIRNAME], : > +[echo $1 | sed 's%/[[^/][^/]]*$%%']) : : Is this supposed to work with DOS-Paths and DOS-Drive-letters? It doesn't handle \ dirseparators, nor will it strip c:text.txt to c: (doesn't recognize driveletter: as a separate entity in the path), but the patch doesn't introduce this bug - the patch is just a reorganization of the existing code that behaved exactly like that. At least now there's only one place to insert a fix for this. Lars J
- [patch] acgeneral.m4 (dirname usage) Lars J. Aas
- Re: [patch] acgeneral.m4 (dirname usage) Lars J. Aas
- Re: [patch] acgeneral.m4 (dirname usage) Akim Demaille
- Re: [patch] acgeneral.m4 (dirname usage) Lars J. Aas
- Re: [patch] acgeneral.m4 (dirname usage) Ralf Corsepius
- Re: [patch] acgeneral.m4 (dirname us... Lars J. Aas
- Re: [patch] acgeneral.m4 (dirnam... Ralf Corsepius
- Re: [patch] acgeneral.m4 (di... Akim Demaille
- Re: [patch] acgeneral.m4 (di... Lars J. Aas
- Re: [patch] acgeneral.m4 (di... Akim Demaille
- Re: [patch] acgeneral.m4 (di... Alexandre Oliva
- Re: [patch] acgeneral.m4 (di... Lars J. Aas
- Re: [patch] acgeneral.m4 (di... Akim Demaille
- Re: [patch] acgeneral.m4 (dirname usage) Alexandre Oliva
- Re: [patch] acgeneral.m4 (dirname us... Akim Demaille
- Re: [patch] acgeneral.m4 (dirnam... Alexandre Oliva