dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* patch for dash
@ 2013-01-06 16:30 Aleksey Cheusov
  2013-01-06 17:37 ` Jérémie Courrèges-Anglas
  0 siblings, 1 reply; 4+ messages in thread
From: Aleksey Cheusov @ 2013-01-06 16:30 UTC (permalink / raw)
  To: 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]$


--- src/mkbuiltins.orig	2011-03-15 07:18:06.000000000 +0000
+++ src/mkbuiltins
@@ -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)

-- 
Best regards, Aleksey Cheusov.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-23 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-06 16:30 patch for dash Aleksey Cheusov
2013-01-06 17:37 ` Jérémie Courrèges-Anglas
2013-01-10 10:46   ` (another) " Jérémie Courrèges-Anglas
2013-08-23 10:42     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).