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
This commit is contained in:
parent
f2b1408938
commit
f9da7ff3bb
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
vsed() {
|
vsed() {
|
||||||
local files=() regexes=() OPTIND OPTSTRING="ie:" has_inline=
|
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
|
while getopts "$OPTSTRING" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue