{{{
In extras/django_bash_completion line 1:
#
#########################################################################
^-- SC2148: Tips depend on target shell and yours is unknown. Add a
shebang.
In extras/django_bash_completion line 46:
echo $PYTHON_EXE | egrep "python([3-9]\.[0-9])?" >/dev/null 2>&1
^-- SC2086: Double quote to prevent globbing and word
splitting.
^-- SC2196: egrep is non-standard and
deprecated. Use grep -E instead.
In extras/django_bash_completion line 47:
if [[ $? == 0 ]]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;',
not indirectly with $?.
In extras/django_bash_completion line 49:
echo $PYTHON_SCRIPT | egrep "manage\.py|django-admin(\.py)?"
>/dev/null 2>&1
^-- SC2086: Double quote to prevent globbing and word
splitting.
^-- SC2196: egrep is non-standard and
deprecated. Use grep -E instead.
In extras/django_bash_completion line 50:
if [[ $? == 0 ]]; then
^-- SC2181: Check exit code directly with e.g. 'if
mycmd;', not indirectly with $?.
In extras/django_bash_completion line 51:
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]:1}" \
^-- SC2097: This assignment is only seen by
the forked process.
In extras/django_bash_completion line 53:
DJANGO_AUTO_COMPLETE=1 ${COMP_WORDS[*]} ) )
^-- SC2098: This
expansion will not see the mentioned assignment.
In extras/django_bash_completion line 67:
pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ")
^-- SC2086: Double quote to prevent globbing and word
splitting.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30283>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by albertyw):
PR at https://code.djangoproject.com/ticket/30283
--
Ticket URL: <https://code.djangoproject.com/ticket/30283#comment:1>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"2ee1e1a1744c4d0679058124eb7ceba78a0a5a84" 2ee1e1a]:
{{{
#!CommitTicketReference repository=""
revision="2ee1e1a1744c4d0679058124eb7ceba78a0a5a84"
Fixed #30283 -- Fixed shellcheck warnings in django_bash_completion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30283#comment:2>