Skip to content

Commit

Permalink
Merge pull request #305 from pstumpf/master
Browse files Browse the repository at this point in the history
Eliminate sed(1) GNUism
  • Loading branch information
rkd77 authored May 27, 2024
2 parents c42188c + 42f2483 commit dcee1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tools/keys2doc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcee1cd

Please sign in to comment.