From f13178a9adf7a3f108bcaea99abec0de1e5ffdda Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Thu, 26 Mar 2026 17:51:56 +0700 Subject: [PATCH] Replace mapfile with portable while-read loop in chat script mapfile is a bash 4+ builtin and fails on macOS default bash 3.2 with "command not found". --- skills/paseo-chat/bin/chat.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/skills/paseo-chat/bin/chat.sh b/skills/paseo-chat/bin/chat.sh index cfcfc1e6b..22aa139d5 100755 --- a/skills/paseo-chat/bin/chat.sh +++ b/skills/paseo-chat/bin/chat.sh @@ -495,7 +495,10 @@ case "$command_name" in sanitize_room_path "$room" require_room "$room" - mapfile -t all_files < <(message_files_sorted "$room") + all_files=() + while IFS= read -r _f; do + all_files+=("$_f") + done < <(message_files_sorted "$room") since_file="" if [[ -n "$since" ]]; then @@ -587,7 +590,10 @@ case "$command_name" in trap 'exit 130' INT TERM while true; do - mapfile -t all_files < <(message_files_sorted "$room") + all_files=() + while IFS= read -r _f; do + all_files+=("$_f") + done < <(message_files_sorted "$room") new_files=() after_baseline=false