Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove redundant shift
  • Loading branch information
potix2 committed Jun 19, 2015
commit e08f602c5f510132b313505fc4b7e704c901a8a8
3 changes: 1 addition & 2 deletions python/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ SUPPORT_PYTHON_VERSIONS="2.6 3.4 pypy"
TARGET_PYTHON_VERSION=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusing to me; are we just declaring a variable here?

if [ $# != 0 -a $1 == "-v" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to double-quote $1?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, this prints an error when I run it on my Mac:

[joshrosen python (2c6a7d4...)]$ ./run-tests
./run-tests: line 33: [: too many arguments

TARGET_PYTHON_VERSION=$2
shift
shift
shift 2
fi

if [ $# == 0 ]; then
Expand Down