George Cristian Birzan wrote: > Package: initrd-tools > Version: 0.1.77 > Severity: grave > Tags: experimental patch > > It's not exactly a patch, just the regular expression I've found to work > with libc6 2.3.4: > > sed -n 's/.*\(=>\)\?[[:blank:]]\+\(\/[^[:blank:]]*\).*/\2/p' >
Something like '[:blank:]' is too much gawk. A few weeks ago I had sent the attached patch. Regards Harri
--- /u/harri/initrd-tools/initrd-tools-0.1.77/mkinitrd 2005-01-23 19:37:41.000000000 +0100 +++ mkinitrd 2005-03-10 16:57:41.933283835 +0100 @@ -1181,7 +1181,16 @@ add_command $i done exec 3>&- - < tmp2 sed 's/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/' + < tmp2 awk ' + /[ ]*.*=>[ ]*\/[^ ]*.*/ { + print $3; + next; + }; + /[ ]*\/[^ ]*.*/ { + print $1; + next; + }; + ' echo /dev/console echo /dev/null
signature.asc
Description: OpenPGP digital signature