In message <[EMAIL PROTECTED]> on Wed, 5 Jun 
2002 08:05:10 -0700 (PDT), Doug Kaufman <[EMAIL PROTECTED]> said:

dkaufman> On Wed, 5 Jun 2002, Richard Levitte via RT wrote:
dkaufman> 
dkaufman> > Can I assume that sed exists and works properly?  dirname can be 
dkaufman> > coded like this:
dkaufman> > 
dkaufman> >    echo $$i | sed -e 's|[^/]*$||' -e 's|/$||'
dkaufman> > 
dkaufman> > If that's guaranteed to work everywhere, that seems to be a good 
dkaufman> > candidate for a 'dirname $$i' replacement...
dkaufman> 
dkaufman> This won't work in systems where an initial "/" doesn't
dkaufman> signify an absolute path. Windows and DOS based systems may
dkaufman> start with a "\" or with [a-zA-Z]:[\\/] for absolute
dkaufman> path.

Good point.

dkaufman> DJGPP and Cygwin have their own dirname applications (from
dkaufman> GNU shell utilities), so this shouldn't be a problem for them.

You're saying we should try to find the real dirname and use it, and
only have the dirname.pl hackery as a backup?  That's doable, I
suppose.

dkaufman> I am not sure about other DOS/Windows based compilers. What
dkaufman> about VMS?

With VMS as well as most Windows compilers, completely different
systems are used, so they aren't an issue.

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken  \ S-168 35  BROMMA  \ T: +46-8-26 52 47
                    \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to