aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2026-02-24 21:13:03 +0100
committerDennis Fink2026-02-24 21:13:03 +0100
commitba036285523e557c79fa96f4e2529379c162cde8 (patch)
tree02a883cacaafe7fb14db14a43c861d682266acbe
parent07430d6c9c2506c6da07604cddc28ecb403e3809 (diff)
downloadtranscode.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-xtranscode.sh3
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