From 75d5bee09c2c7a4236f2794d9ad9730aec9074f2 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 30 Jul 2024 09:29:21 -0700 Subject: [PATCH] fix issues with loading recombined zsh scripts --- sh/recombine | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sh/recombine b/sh/recombine index d993b05..3d8c39c 100644 --- a/sh/recombine +++ b/sh/recombine @@ -37,9 +37,10 @@ case "$sh" in exit 1 esac -[ "$SH" != zsh ] || set -o SH_WORD_SPLIT +[ "$SH" != ZSH ] || set -o SH_WORD_SPLIT printf %s\\n '#!/usr/bin/env false' '[ -n "$preload" ] || exit 1' '' +[ "$SH" != ZSH ] || printf %s\\n 'emulate zsh' for f in "${HOME:?}/sh"/*; do [ -n "${f##*.*}" ] && [ -f "$f" ] || continue i=10 sh=