mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Revert FreeBSD sed changes; they don't work for GNU sed
This commit is contained in:
parent
c4d22f9c24
commit
c18740b30d
@ -138,9 +138,9 @@ do
|
|||||||
|
|
||||||
[a-z_-]*[.a-z_-]*)
|
[a-z_-]*[.a-z_-]*)
|
||||||
parse_description=1
|
parse_description=1
|
||||||
path="$(echo "$line" | sed -e 's/\([a-z-][^ ]*\).*/\1/')"
|
path="`echo $line | sed -e 's/\([a-z-][^ ]*\).*/\1/'`"
|
||||||
typeid="$(echo "$line" | sed -n 's/[ ]*[a-z-][^ ]* \([^ ]*\).*/\1/p')"
|
typeid="`echo $line | sed -e 's/[ ]*[a-z-][^ ]* \([^ ]*\).*/\1/'`"
|
||||||
default="$(echo "$line" | sed -n 's/.*[^(]*(\(.*\))/\1/p')"
|
default="`echo \"$line\" | sed -e 's/[^(]*(\(.*\))/\1/'`"
|
||||||
print_option_type "$path" "$typeid" "$default"
|
print_option_type "$path" "$typeid" "$default"
|
||||||
if test "$typeid" = "<num>";
|
if test "$typeid" = "<num>";
|
||||||
then
|
then
|
||||||
|
@ -75,7 +75,7 @@ print_keymap_defaults()
|
|||||||
| while read entry
|
| while read entry
|
||||||
do
|
do
|
||||||
entry=$(echo "$entry" | sed 's/.*{ { //' | sed 's/ }//')
|
entry=$(echo "$entry" | sed 's/.*{ { //' | sed 's/ }//')
|
||||||
key=$(echo "$entry" | sed "s/.*\(KBD_[^,]*\|'.*'\),.*/\1/")
|
key=$(echo "$entry" | sed "s/\(KBD_[^,]*\|'.*'\),.*/\1/")
|
||||||
modifier=$(echo "$entry" | sed "s/.*KBD_MOD_\([A-Z_]*\).*/\1/")
|
modifier=$(echo "$entry" | sed "s/.*KBD_MOD_\([A-Z_]*\).*/\1/")
|
||||||
action=$(echo "$entry" | sed "s/.*,.*\(ACT_$KEYMAP\)_\([A-Z_]*\).*/\2/")
|
action=$(echo "$entry" | sed "s/.*,.*\(ACT_$KEYMAP\)_\([A-Z_]*\).*/\2/")
|
||||||
action=$(grep " $action," "$CONFIGDIR/actions-$keymap.inc" \
|
action=$(grep " $action," "$CONFIGDIR/actions-$keymap.inc" \
|
||||||
@ -83,7 +83,7 @@ print_keymap_defaults()
|
|||||||
|
|
||||||
case "$key" in
|
case "$key" in
|
||||||
KBD_*)
|
KBD_*)
|
||||||
key=$(grep "$key" $KBDBIND \
|
key=$(grep $key $KBDBIND \
|
||||||
| grep '^[[:space:]]{ "' \
|
| grep '^[[:space:]]{ "' \
|
||||||
| sed 's/.*"\([^"]*\)".*/\1/')
|
| sed 's/.*"\([^"]*\)".*/\1/')
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user