fix debashified [*] on maps having extra space
This commit is contained in:
parent
f5e5d32eca
commit
39c8f7fa58
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
__lxsh_map_get() {
|
||||
if [ "$2" = \* ] || [ "$2" = @ ] ; then
|
||||
printf "%s\n" "$1" | sort | cut -d ']' -f2-
|
||||
printf "%s" "$(printf "%s" "$1" | sort | cut -d ']' -f2-)" | tr '\n' ' '
|
||||
else
|
||||
printf "%s\n" "$1" | grep "^$2\]" | cut -d ']' -f2-
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue