From 22c883efa4217de14b7505c12ad297edb8aae9b0 Mon Sep 17 00:00:00 2001 From: Sam Thomas <10165959+samuelfullerthomas@users.noreply.github.com> Date: Fri, 27 Nov 2026 23:33:11 +0000 Subject: [PATCH] fix(dotenv): bypass aliases when checking .env syntax (#14179) --- plugins/dotenv/dotenv.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dotenv/dotenv.plugin.zsh b/plugins/dotenv/dotenv.plugin.zsh index 72839a501..4ff34ab7d 100644 --- a/plugins/dotenv/dotenv.plugin.zsh +++ b/plugins/dotenv/dotenv.plugin.zsh @@ -263,9 +263,9 @@ _dotenv_check_syntax() { local filename="$1" if (( $# == 2 )); then - printf '%s' "$2" | zsh -fn /dev/stdin + printf '%s' "$2" | command zsh -fn /dev/stdin else - zsh -fn -- "$filename" + command zsh -fn -- "$filename" fi || { echo "dotenv: error when sourcing '$filename' file" >&2 return 1