* [PATCH] POSIXify use of tail (2.6.0-test1-bk2)
@ 2003-07-22 9:37 junkio
0 siblings, 0 replies; only message in thread
From: junkio @ 2003-07-22 9:37 UTC (permalink / raw)
To: trivial; +Cc: linux-kernel
There appears to be a cleanup effort going on to add "-n" to
head; here is a corresponding fix for a use of tail as well.
$ _POSIX2_VERSION=200112 head -1 /dev/null
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
$ _POSIX2_VERSION=200112 tail -1 /dev/null
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
--- linux-2.6.0-test1-bk2/scripts/mkcompile_h 2003-07-22 02:28:15 -0700
+++ linux-2.6.0-test1-bk2/scripts/mkcompile_h 2003-07-22 02:27:39 -0700
@@ -54,7 +54,7 @@
echo \#define LINUX_COMPILE_DOMAIN
fi
- echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -1`\"
+ echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\"
) > .tmpcompile
# Only replace the real compile.h if the new one is different,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-22 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-22 9:37 [PATCH] POSIXify use of tail (2.6.0-test1-bk2) junkio
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).