Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21875b5

Browse files
committed
Don't split and glob the interpreter name
In the release building script, this changes $1 to "$1", because$1 without quotes means to perform word splitting and globbing(pathname expansion) on the parameter (unless otherwise disabled bythe value of $IFS or "set -f", respectively) and use the result ofdoing so, which isn't the intent of the code.This function is only used from within the script, where it isnot given values that would be changed by these additionalexpansions. So this is mainly about communicating intent.(If in the future it is intended that multiple arguments be usable,then they should be passed as separate arguments to release_with,which should be modified by replacing "$1" with "$@". I have notused "$@" at this time because it is not intuitively obvious thatthe arguments should be to the interpreter, rather than to thebuild module, so I don't think this should be supported unless oruntil a need for it determines that.)
1 parent7dd8add commit21875b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎build-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -eEu
77

88
functionrelease_with() {
9-
$1 -m build --sdist --wheel
9+
"$1" -m build --sdist --wheel
1010
}
1111

1212
iftest -n"${VIRTUAL_ENV:-}";then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp