HomeFreeBSD

Make this test case accepts basename() in D script returns "" or "."

Description

Make this test case accepts basename() in D script returns "" or "."

In Solaris, basename(1) and basename(3) both return "." while being given an
empty string (""), while in BSD (and Linux) basename(1) returns "" and
basename(3) returns "."

While here, also change #!/usr/bin/ksh to #!/usr/bin/env ksh to find ksh in
$PATH

Reviewed by: gnn, markj (earlier version), ngie (earlier version)
Differential Revision: https://reviews.freebsd.org/D11707

Details

Provenance
lwhsuAuthored on
Reviewer
gnn
Differential Revision
D11707: common/funcs/tst.basename.d*: make it compatible with basename(1)
Parents
rS321468: Explicitly set dynamic variable buffer size.
Branches
Unknown
Tags
Unknown