Remove shebang lines from scripts for performance

All scripts in libexec/ (excluding pyenv) are called through pyenv,
therefore the shebang lines are not necessary. On some systems this
provides a measurable increase in performance of the shell prompt.

Related to pyenv/pyenv-virtualenv#259
This commit is contained in:
Casey McGinty 2018-04-30 21:56:09 -07:00 committed by Daniel Hahler
parent 7d02b2463b
commit 83e5459cfb
32 changed files with 1 additions and 44 deletions

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Display the version of pyenv
#
# Displays the version number of this pyenv release, including the

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: List all available pyenv commands
# Usage: pyenv commands [--sh|--no-sh]

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Usage: pyenv completions <command> [arg1 arg2...]
set -e

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Run an executable with the selected Python version
#
# Usage: pyenv exec <command> [arg1 arg2...]

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Set or show the global Python version
#
# Usage: pyenv global <version>

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Display help for a command
#
# Usage: pyenv help [--usage] COMMAND

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: List hook scripts for a given pyenv command
# Usage: pyenv hooks <command>

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Configure the shell environment for pyenv
# Usage: eval "$(pyenv init - [--no-rehash] [<shell>])"

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Set or show the local application-specific Python version
#
# Usage: pyenv local <version>

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Display prefix for a Python version
# Usage: pyenv prefix [<version>]
#

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Rehash pyenv shims (run this after installing executables)
set -e
@ -62,7 +61,6 @@ fi
# serves as a locking mechanism.
create_prototype_shim() {
cat > "$PROTOTYPE_SHIM_PATH" <<SH
#!/usr/bin/env bash
set -e
[ -n "\$PYENV_DEBUG" ] && set -x

View file

@ -1,3 +1,2 @@
#!/usr/bin/env bash
# Summary: Display the root directory where versions and shims are kept
echo "$PYENV_ROOT"

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Set or show the shell-specific Python version
#
# Usage: pyenv shell <version>...

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: List existing pyenv shims
# Usage: pyenv shims [--short]

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Show the current Python version and its origin
#
# Shows the currently selected Python version and how it was

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Usage: pyenv version-file [<dir>]
# Summary: Detect the file that sets the current pyenv version
set -e

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Usage: pyenv version-file-read <file>
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Usage: pyenv version-file-write <file> <version>
set -e

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Show the current Python version
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Explain how the current Python version is set
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: List all Python versions available to pyenv
# Usage: pyenv versions [--bare] [--skip-aliases]
#

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: List all Python versions that contain the given executable
# Usage: pyenv whence [--path] <command>

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Display the full path to an executable
#
# Usage: pyenv which <command>

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Install a Python version using python-build
#
# Usage: pyenv install [-f] [-kvp] <version>

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Summary: Uninstall a specific Python version
#
# Usage: pyenv uninstall [-f|--force] <version>

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
set -e
status=0

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x

View file

@ -35,7 +35,7 @@ load test_helper
cd "$PYENV_TEST_DIR"
cat > myscript.sh <<OUT
#!/bin/sh
eval "\$(pyenv-init -)"
eval "\$(pyenv init -)"
echo \$PYENV_SHELL
OUT
chmod +x myscript.sh

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Usage: pyenv echo [-F<char>] VAR
if [[ $1 == -F* ]]; then