From f02283efa7e6e7483a65e7ca60cc6622b7381485 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Tue, 26 May 2020 07:51:21 +0300 Subject: [PATCH] zsh comments --- macos-guest-virtualbox.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index dfd1a2e..260635f 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -140,6 +140,7 @@ elif [[ "${SHELL}" =~ /zsh ]]; then echo "Please execute this script with zsh version 5.5 or higher." exit fi + # make zsh parse the script (almost) like bash setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob else echo "Can't determine SHELL. Exiting." @@ -1498,6 +1499,7 @@ function would_you_like_to_know_less() { } function prompt_delete_y_n() { + # workaround for zsh-bash differences in read delete="" if [[ -t 1 ]]; then if [[ "${SHELL}" =~ /zsh ]]; then