diff --git a/shellcode/map_get.sh b/shellcode/map_get.sh index 36a11a2..9be6188 100644 --- a/shellcode/map_get.sh +++ b/shellcode/map_get.sh @@ -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