From: Aleksey Cheusov <vle@gmx.net>
To: dash@vger.kernel.org
Subject: patch for dash
Date: Sun, 06 Jan 2013 19:30:54 +0300 [thread overview]
Message-ID: <87a9sms281.fsf@asrock.chizhovka.net> (raw)
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.
next reply other threads:[~2013-01-06 16:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-06 16:30 Aleksey Cheusov [this message]
2013-01-06 17:37 ` patch for dash 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9sms281.fsf@asrock.chizhovka.net \
--to=vle@gmx.net \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox