From: Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH: 2.5.27] fix scripts/mkcompile_h for non-bash shells
Date: 22 Jul 2002 18:23:32 +0200 [thread overview]
Message-ID: <87bs8zlojf.fsf@arm.t19.ds.pwr.wroc.pl> (raw)
With pdksh as /bin/sh
[root@arm linux-2.5.27]# make bzImage
make[1]: Wchodzę w katalog `/usr/src/linux-2.5.27/scripts'
make[1]: Opuszczam katalog `/usr/src/linux-2.5.27/scripts'
Starting the build. KBUILD_BUILTIN=1 KBUILD_MODULES=
make[1]: Wchodzę w katalog `/usr/src/linux-2.5.27/init'
Generating /usr/src/linux-2.5.27/include/linux/compile.hsed: can't read s/\(.\64\\).*/\1/: No such file or directory
sed: can't read s/\(.\64\\).*/\1/: No such file or directory
sed: can't read s/\(.\64\\).*/\1/: No such file or directory
(unchanged)
make[1]: Opuszczam katalog `/usr/src/linux-2.5.27/init'
That's due to expanding of sed expression done by shell:
[misiek@arm misiek]$ sh
[\u@\h \W]$ UTS_TRUNCATE='sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/'
[\u@\h \W]$ echo $UTS_TRUNCATE
sed -e s/\(.\1\).*/\1/ s/\(.\$UTS_LEN\).*/\1/
This little change fixes that:
--- scripts/mkcompile_h.org Mon Jul 22 18:15:33 2002
+++ scripts/mkcompile_h Mon Jul 22 18:15:55 2002
@@ -3,6 +3,9 @@
SMP=$3
CC=$4
+# Do not expand names
+set -f
+
if [ -r ../.version ]; then
VERSION=`cat ../.version`
else
--
Arkadiusz Miśkiewicz IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr
reply other threads:[~2002-07-22 17:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87bs8zlojf.fsf@arm.t19.ds.pwr.wroc.pl \
--to=misiek@pld.org.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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
all inboxes | Powered by JetHome®