Re: [PATCH] sed s/gawk/awk/ scripts/gen_init_ramfs.sh

Rob Landley
2007-01-24T17:30:26Z

On Tuesday 23 January 2007 7:49 pm, Andrew Morton wrote:
> If the kernel is being compiled on a non-Linux system (eg: legacy Unix)
> then it is, I guess, possible for `awk' and `gawk' to offer different
> features. If the kernel's use of gawk uses GNU extensions then this patch
> might break things on such a system.
>
> I guess we'll find out...

I think we can rule out the "print $6" and "print $11" as gnu extensions. And
sub() is in the Single Unix Specification v3 spec for awk:

http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html

I've used the busybox version and it worked just fine, once the links were
renamed.

Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery