fix(dotenv): bypass aliases when checking .env syntax (#14179)

This commit is contained in:
Sam Thomas authored and GitHub committed 2026-11-27 15:33:11 -08:00
1 parent da85047297
commit 22c883efa4
1 file changed
+2 -2
+2 -2
View File
@@ -263,9 +263,9 @@ _dotenv_check_syntax() {
local filename="$1" local filename="$1"
if (( $# == 2 )); then if (( $# == 2 )); then
printf '%s' "$2" | zsh -fn /dev/stdin printf '%s' "$2" | command zsh -fn /dev/stdin
else else
zsh -fn -- "$filename" command zsh -fn -- "$filename"
fi || { fi || {
echo "dotenv: error when sourcing '$filename' file" >&2 echo "dotenv: error when sourcing '$filename' file" >&2
return 1 return 1