1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Merge pull request #305 from pstumpf/master

Eliminate sed(1) GNUism
This commit is contained in:
rkd77 2024-05-27 18:37:24 +02:00 committed by GitHub
commit dcee1cda20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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