diff options
author | obrien <obrien@FreeBSD.org> | 2001-11-01 07:16:35 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-11-01 07:16:35 +0000 |
commit | 3be11f77dab60f9c5a255df906013affcd18ba8f (patch) | |
tree | bc5c4f48da9c72b4a4fc64bc2ebf721153964e3c /sys/boot/common | |
parent | 533c5ccaf2455c7207673ce91e5a8a64204251ef (diff) | |
download | FreeBSD-src-3be11f77dab60f9c5a255df906013affcd18ba8f.zip FreeBSD-src-3be11f77dab60f9c5a255df906013affcd18ba8f.tar.gz |
Bell-Labs AWK does not support POSIX "bracket expressions" (POSIXese for
"character classes", basically). So change them to their character
representation.
Submitted by: David Wolfskill <david@catwhisker.org>
Diffstat (limited to 'sys/boot/common')
-rw-r--r-- | sys/boot/common/merge_help.awk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/common/merge_help.awk b/sys/boot/common/merge_help.awk index 9741ed3..103a228 100644 --- a/sys/boot/common/merge_help.awk +++ b/sys/boot/common/merge_help.awk @@ -20,13 +20,13 @@ BEGIN \ } # entry header -/^# T[[:graph:]]+ (S[[:graph:]]+ )*D[[:graph:]][[:print:]]*$/ && (state == 1) \ +/^# T[\x21-\x7e]+ (S[\x21-\x7e]+ )*D[\x21-\x7e][\x20-\x7e]*$/ && (state == 1) \ { - match($0, " T[[:graph:]]+"); + match($0, " T[\x21-\x7e]+"); T = substr($0, RSTART + 2, RLENGTH - 2); - match($0, " S[[:graph:]]+"); + match($0, " S[\x21-\x7e]+"); S = (RLENGTH == -1) ? "" : substr($0, RSTART + 2, RLENGTH - 2); - match($0, " D[[:graph:]][[:print:]]*$"); + match($0, " D[\x21-\x7e][\x20-\x7e]*$"); D = substr($0, RSTART + 2); # find a suitable place to store this one... |