head -n1 vs head -1, minor fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi list, hi jari,

playing around with my new desktop distribution of choice, Gentoo linux
warns me about using "head -N" to show the first N lines of input. instead
one is supposed to use "head -n N":

/-----------
| $ make LINUX_SOURCE=/usr/src/linux-2.6.10-gentoo-r7/
| head: `-1' option is obsolete; use `-n 1' since this will be removed in
| the future
\------------

is this so? if yes, these minor fixes could be applied.

thanks,
Christian.
- --
BOFH excuse #12:

dry joints on cable plug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCITxn+A7rjkF8z0wRAqejAJ4uoyhOfjPQpwtP9hdNWl/SVSZ3WQCfVTup
XCYkkk+sg8qs2800JEpANBE=
=kG1J
-----END PGP SIGNATURE-----
--- ciphers-v3.0a/Makefile	2004-11-18 17:51:13.000000000 +0100
+++ ciphers-v3.0a/Makefile.edited	2005-02-27 04:11:02.563340712 +0100
@@ -87,7 +87,7 @@
 ifeq ($(shell if [ "$(VERSION)$(PATCHLEVEL)0" -ge 260 ]; then echo y; fi),y)
 	DMOK:=y
 else
-	DMOK:=$(shell if [ `/sbin/insmod -V 2>&1 | head -1 | awk '/^insmod version /{split($$3, a, /\./); printf "%d%03d%03d\n", a[1], a[2], a[3];}'`0 -ge 20020020 ]; then echo y; fi)
+	DMOK:=$(shell if [ `/sbin/insmod -V 2>&1 | head -n 1 | awk '/^insmod version /{split($$3, a, /\./); printf "%d%03d%03d\n", a[1], a[2], a[3];}'`0 -ge 20020020 ]; then echo y; fi)
 endif
 ifndef DEPMOD
 	DEPMOD:=/sbin/depmod
--- loop-AES-v3.0b/Makefile	2005-02-27 04:05:48.687057160 +0100
+++ loop-AES-v3.0b/Makefile.edited	2005-02-27 04:06:11.692559792 +0100
@@ -142,7 +142,7 @@
 ifeq ($(shell if [ "$(VERSION)$(PATCHLEVEL)0" -ge 260 ]; then echo y; fi),y)
 	DMOK:=y
 else
-	DMOK:=$(shell if [ `/sbin/insmod -V 2>&1 | head -1 | awk '/^insmod version /{split($$3, a, /\./); printf "%d%03d%03d\n", a[1], a[2], a[3];}'`0 -ge 20020020 ]; then echo y; fi)
+	DMOK:=$(shell if [ `/sbin/insmod -V 2>&1 | head -n 1 | awk '/^insmod version /{split($$3, a, /\./); printf "%d%03d%03d\n", a[1], a[2], a[3];}'`0 -ge 20020020 ]; then echo y; fi)
 endif
 ifndef DEPMOD
 	DEPMOD:=/sbin/depmod

[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux