patch for dash
Hi. The following patch fixes dash build failure on Solaris where /usr/bin/nl (which is in default PATH) is not POSIX compatible. POSIX-ly correct version is in /usr/xpg4/bin but I think it's easier to fix use of nl(1).
[cheusov@pkgsrc-dev]$ /usr/bin/nl -ba -v0 <<< foo
0 foo
[cheusov@pkgsrc-dev]$ /usr/bin/nl -b a -v 0 <<< foo
nl: a: No such file or directory
[cheusov@pkgsrc-dev]$ uname -srm
SunOS 5.11 i86pc
[cheusov@pkgsrc-dev]$mkbuiltins renamed from mkbuiltins.orig +1 -1
@@ -97,7 +97,7 @@ cat <<\! */ ! -sed 's/ -[a-z]*//' $temp2 | nl -b a -v 0 | LC_COLLATE=C sort -u -k 3,3 | +sed 's/ -[a-z]*//' $temp2 | nl -ba -v0 | LC_COLLATE=C sort -u -k 3,3 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | awk '{ printf "#define %s (builtincmd + %d)\n", $3, $1}' printf '\n#define NUMBUILTINS %d\n' $(wc -l < $temp2)
Signature · 1 line
Best regards, Aleksey Cheusov.
Quoted 4 lines · Aleksey Cheusov
Hi. The following patch fixes dash build failure on Solaris where
/usr/bin/nl(which is in default PATH) is not POSIX compatible. POSIX-ly correct version is in/usr/xpg4/binbut I think it's easier to fix use of nl(1).
Hi. I'd like to submit this slightly different patch that uses awk instead of nl. This is useful for example on OpenBSD, which doesn't have nl in the base system.
Regards,
Signature · 2 lines
Jérémie Courrèges-Anglas GPG Fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494
Re: (another) patch for dash
Hi,
with Aleksey we briefly discussed the mdoc compatibility of the manpage, here's a patch that makes mandoc 1.12.1 happier and behaves correctly against groff 1.21. I want to include it in the staging dash-0.5.7 OpenBSD port.
Regards,
Signature · 2 lines
Jérémie Courrèges-Anglas GPG Key fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494
Re: (another) patch for dash
Quoted 6 lines · Jérémie Courrèges-Anglas
Hi,
with Aleksey we briefly discussed the mdoc compatibility of the manpage, here's a patch that makes mandoc 1.12.1 happier and behaves correctly against groff 1.21. I want to include it in the staging dash-0.5.7 OpenBSD port.
Patch applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt