Skip to content

Commit 2b78148

Browse files
committed
Bash '<<<' for fewer forks
1 parent 3cd2fc4 commit 2b78148

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JSONPath.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ json() {
530530
else
531531
while read -r line; do
532532
a=${line#[};a=${a%%]*}
533-
readarray -t path < <(echo "$a" | grep -o "[^,]*")
533+
readarray -t path < <(grep -o "[^,]*"<<<"$a")
534534
value=${line#*$tab}
535535

536536
# Not including the object itself (last item)

0 commit comments

Comments
 (0)