update cowpatch from upstream to fix regression on bash

upstream commit 1db812b0ca94d07ede9891883484f2a76dae8e23
This commit is contained in:
Rich Felker 2020-02-24 21:57:15 -05:00
parent 75e6c618ad
commit aacd84ed2c
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ done
cowpatch () { cowpatch () {
plev=0 plev=0
OPTIND=1
while getopts ":p:i:RNE" opt ; do while getopts ":p:i:RNE" opt ; do
test "$opt" = p && plev="$OPTARG" test "$opt" = p && plev="$OPTARG"
done done