Bug 1234 - scripts/mkconfigs uses deprecated 'head -1' syntax
Summary: scripts/mkconfigs uses deprecated 'head -1' syntax
Status: CLOSED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Configuration (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Roman Zippel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-14 16:58 UTC by Mike Frysinger
Modified: 2003-11-26 16:32 UTC (History)
0 users

See Also:
Kernel Version: 2.6.0-test5
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Mike Frysinger 2003-09-14 16:58:49 UTC
latest coreutils deprecated the usage of 'head -1'

head will just error and not output anything:
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.

the scripts/mkconfigs uses head -1 while generating the KERNVER value
root@vapier 0 linux # grep 'head -1' scripts/mkconfigs 
KERNVER="`grep VERSION $1 | head -1 | cut -f3 -d' '`.`grep PATCHLEVEL $1 | head
-1 | cut -f3 -d' '`.`grep SUBLEVEL $1 | head -1 | cut -f3 -d' '``grep
EXTRAVERSION $1 | head -1 | cut -f3 -d' '`"
Comment 1 Andrew Morton 2003-09-14 18:05:18 UTC
I'll be removing /proc/config_build_info altogether, so
this problem goes away.
Comment 2 Martin J. Bligh 2003-11-26 16:32:56 UTC
This one done and merged now? Can we close it? pretty please?

Note You need to log in before you can comment on or make changes to this bug.