From e08ee0876807ed06d690db1ef6e8e0c6b473508d Mon Sep 17 00:00:00 2001 From: bretello Date: Sat, 8 Jul 2023 10:18:04 +0200 Subject: [PATCH] zsh: functions: avoid using aliases when calling rm/mv --- functions/z.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/z.zsh b/functions/z.zsh index 8c14274..85a3704 100644 --- a/functions/z.zsh +++ b/functions/z.zsh @@ -95,10 +95,10 @@ _z() { ' 2>/dev/null >| "$tempfile" # do our best to avoid clobbering the datafile in a race condition. if [ $? -ne 0 -a -f "$datafile" ]; then - env rm -f "$tempfile" + command rm -f "$tempfile" else - [ "$_Z_OWNER" ] && chown $_Z_OWNER:"$(id -ng $_Z_OWNER)" "$tempfile" - env mv -f "$tempfile" "$datafile" || env rm -f "$tempfile" + [ "$_Z_OWNER" ] && command chown $_Z_OWNER:"$(id -ng $_Z_OWNER)" "$tempfile" + command mv -f "$tempfile" "$datafile" || command rm -f "$tempfile" fi # tab completion