On Wed, 5 Jun 2002, Richard Levitte via RT wrote:
> Can I assume that sed exists and works properly? dirname can be
> coded like this:
>
> echo $$i | sed -e 's|[^/]*$||' -e 's|/$||'
>
> If that's guaranteed to work everywhere, that seems to be a good
> candidate for a 'dirname $$i' replacement...
This won't work in systems where an initial "/" doesn't signify an
absolute path. Windows and DOS based systems may start with a "\" or
with [a-zA-Z]:[\\/] for absolute path. DJGPP and Cygwin have their own
dirname applications (from GNU shell utilities), so this shouldn't
be a problem for them. I am not sure about other DOS/Windows based
compilers. What about VMS?
Doug
__
Doug Kaufman
Internet: [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]