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

Reply via email to