From 86f7321ff4729ee1970082e26a13763f8fe23734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 17 Feb 2021 18:22:49 +0700 Subject: [PATCH] vsed: stop collapsing whitespace MCVE: printf '%s %s\n' a b >afile vsed -i -e '/a b/d' afile Expect: - afile should be empty Actual: - afile is not empty --- common/environment/setup/vsed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/environment/setup/vsed.sh b/common/environment/setup/vsed.sh index 092253696cd..5b5bf427c23 100644 --- a/common/environment/setup/vsed.sh +++ b/common/environment/setup/vsed.sh @@ -8,7 +8,7 @@ vsed() { local files=() regexes=() OPTIND OPTSTRING="ie:" has_inline= - eval set -- $(getopt -s bash "$OPTSTRING" "$@"); + eval set -- "$(getopt -s bash "$OPTSTRING" "$@")"; while getopts "$OPTSTRING" opt; do case $opt in