In /usr/bin/edit-patch line 67:
    elif [ -e debian/patches/series -o \
                                    ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.


In /usr/bin/edit-patch line 110:
    vcs_add debian/patches/$1
                           ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add debian/patches/"$1"


In /usr/bin/edit-patch line 116:
    if ! grep -q $1 $PREFIX/00list; then
                 ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if ! grep -q "$1" $PREFIX/00list; then


In /usr/bin/edit-patch line 119:
    vcs_add $PREFIX/00list $PREFIX/$1
                                   ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add $PREFIX/00list $PREFIX/"$1"


In /usr/bin/edit-patch line 126:
    if [ -e $PREFIX/$1 ]; then
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if [ -e $PREFIX/"$1" ]; then


In /usr/bin/edit-patch line 132:
        quilt push $1
                   ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        quilt push "$1"


In /usr/bin/edit-patch line 138:
        quilt new $1
                  ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        quilt new "$1"


In /usr/bin/edit-patch line 144:
    quilt pop $top_patch
              ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    quilt pop "$top_patch"


In /usr/bin/edit-patch line 145:
    vcs_add $PREFIX/$1 $PREFIX/series
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add $PREFIX/"$1" $PREFIX/series


In /usr/bin/edit-patch line 157:
    cp $1 $PREFIX/$2
       ^-- SC2086: Double quote to prevent globbing and word splitting.
                  ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    cp "$1" $PREFIX/"$2"


In /usr/bin/edit-patch line 158:
    if ! grep -q $2 $PREFIX/series; then
                 ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if ! grep -q "$2" $PREFIX/series; then


In /usr/bin/edit-patch line 161:
    vcs_add $PREFIX/$2 $PREFIX/series
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add $PREFIX/"$2" $PREFIX/series


In /usr/bin/edit-patch line 166:
    cp $1 $PREFIX/$2
       ^-- SC2086: Double quote to prevent globbing and word splitting.
                  ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    cp "$1" $PREFIX/"$2"


In /usr/bin/edit-patch line 167:
    vcs_add $PREFIX/$2
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add $PREFIX/"$2"


In /usr/bin/edit-patch line 172:
    cp $1 $PREFIX
       ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    cp "$1" $PREFIX


In /usr/bin/edit-patch line 173:
    if ! grep -q $2 $PREFIX/00list; then
                 ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if ! grep -q "$2" $PREFIX/00list; then


In /usr/bin/edit-patch line 176:
    vcs_add $PREFIX/$2 $PREFIX/00list
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add $PREFIX/"$2" $PREFIX/00list


In /usr/bin/edit-patch line 181:
    cp $1 $PREFIX/$2
       ^-- SC2086: Double quote to prevent globbing and word splitting.
                  ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    cp "$1" $PREFIX/"$2"


In /usr/bin/edit-patch line 182:
    vcs_add $PREFIX/$2
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    vcs_add $PREFIX/"$2"


In /usr/bin/edit-patch line 187:
        bzr add $@
                ^-- SC2068: Double quote array expansions to avoid re-splitting elements.


In /usr/bin/edit-patch line 189:
        git add $@
                ^-- SC2068: Double quote array expansions to avoid re-splitting elements.


In /usr/bin/edit-patch line 191:
        echo "Remember to add $@ to a VCS if you use one"
                              ^-- SC2145: Argument mixes string and array. Use * or separate argument.


In /usr/bin/edit-patch line 217:
    if grep "## Description:" $PREFIX/$1; then
                                      ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if grep "## Description:" $PREFIX/"$1"; then


In /usr/bin/edit-patch line 223:
    if head -n1 $PREFIX/$1|grep -q '^#'; then
                        ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if head -n1 $PREFIX/"$1"|grep -q '^#'; then


In /usr/bin/edit-patch line 226:
    sed -i ${RANGE}i"$PATCH_DESC" $PREFIX/$1
                                          ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    sed -i ${RANGE}i"$PATCH_DESC" $PREFIX/"$1"


In /usr/bin/edit-patch line 296:
    if [ "$(basename $0 .sh)" = "edit-patch" ]; then
                     ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    if [ "$(basename "$0" .sh)" = "edit-patch" ]; then


In /usr/bin/edit-patch line 297:
        edit_patch_$PATCHSYSTEM $PATCHNAME
                                ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        edit_patch_$PATCHSYSTEM "$PATCHNAME"


In /usr/bin/edit-patch line 298:
    elif [ "$(basename $0 .sh)" = "add-patch" ]; then
                       ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    elif [ "$(basename "$0" .sh)" = "add-patch" ]; then


In /usr/bin/edit-patch line 299:
        add_patch_$PATCHSYSTEM $1 $PATCHNAME
                               ^-- SC2086: Double quote to prevent globbing and word splitting.
                                  ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        add_patch_$PATCHSYSTEM "$1" "$PATCHNAME"


In /usr/bin/edit-patch line 303:
    add_patch_tagging $PATCHNAME
                      ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    add_patch_tagging "$PATCHNAME"


In /usr/bin/edit-patch line 304:
    add_changelog $PATCHNAME
                  ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    add_changelog "$PATCHNAME"


In /usr/bin/edit-patch line 308:
main $@
     ^-- SC2068: Double quote array expansions to avoid re-splitting elements.

For more information:
  https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
  https://www.shellcheck.net/wiki/SC2145 -- Argument mixes string and array. ...
  https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] || [ q ] as [ p -o q...