mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Eliminate sed(1) GNUism
\| is an incompatible GNU extension to BREs. This corrupts formatting of the elinkskeys(5) man page on any system where sed is not GNU sed (e.g. the BSDs). Use ERE syntax instead.
This commit is contained in:
parent
c42188c15a
commit
42f2483350
@ -75,7 +75,7 @@ print_keymap_defaults()
|
||||
| while read entry
|
||||
do
|
||||
entry=$(echo "$entry" | sed 's/.*{ { //')
|
||||
key=$(echo "$entry" | sed "s/\(KBD_[^,]*\|'.*'\),.*/\1/")
|
||||
key=$(echo "$entry" | sed -E "s/(KBD_[^,]*|'.*'),.*/\1/")
|
||||
action=$(echo "$entry" | sed "s/.*,.*\(ACT_$KEYMAP\)_\([A-Z_]*\).*/\2/")
|
||||
# If there are backslashed quotes, remove the backslashes.
|
||||
# (This is not needed in print_keymap_actions because
|
||||
|
Loading…
Reference in New Issue
Block a user