diff options
| author | Dennis Fink | 2026-02-24 21:13:03 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-02-24 21:13:03 +0100 |
| commit | ba036285523e557c79fa96f4e2529379c162cde8 (patch) | |
| tree | 02a883cacaafe7fb14db14a43c861d682266acbe | |
| parent | 07430d6c9c2506c6da07604cddc28ecb403e3809 (diff) | |
| download | transcode.sh-ba036285523e557c79fa96f4e2529379c162cde8.tar.gz transcode.sh-ba036285523e557c79fa96f4e2529379c162cde8.zip | |
refactor: remove expand_aliases shopt
Aliases are never defined or used in the script, making this option
redundant. Removing it reduces the attack surface slightly and avoids
unexpected behaviour if the script is ever sourced into a shell with
user-defined aliases.
| -rwxr-xr-x | transcode.sh | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/transcode.sh b/transcode.sh index 3ca19bd..7a0a9cb 100755 --- a/transcode.sh +++ b/transcode.sh @@ -76,9 +76,6 @@ IFS=$'\n\t' UMASK=002 umask "$UMASK" -# Allow aliases to expand inside command substitutions (optional convenience) -shopt -s expand_aliases - # Ensure ERR traps are inherited by functions and subshells set -o errtrace # Treat use of undefined variables as an error and exit |
