Merge pull request #1875 from lalyos/fix-sed-plugin

fix quotation issues by using a bash array
This commit is contained in:
Jeff Regan
2019-12-01 07:54:07 -08:00
committed by GitHub

View File

@@ -2,10 +2,9 @@
# Skip the config file name argument.
shift
args=""
for arg in $@; do
args="$args -e $arg"
args=()
for arg in "$@"; do
args+=(-e "$arg")
done
cat - | sed $args
sed "${args[@]}"