From: Risto Laitinen <risto.laitinen@gmail.com> To: zsh-workers@zsh.org Subject: [PATCH] zed fails with setopt nounset unless option -x is given Date: Fri, 20 May 2022 17:06:35 +0300 [thread overview] Message-ID: <CAA-Ti-jiCVGAGF6XMi2axwcwkkHrCGzyvh9Biaf-d=qT443pLg@mail.gmail.com> (raw) [-- Attachment #1: Type: text/plain, Size: 95 bytes --] % zsh-5.9 -f % autoload zed % setopt nounset % zed a.txt zed:21: opts[-x]: parameter not set % [-- Attachment #2: 0001-zed-nounset.txt --] [-- Type: text/plain, Size: 369 bytes --] --- Functions/Misc/zed.orig 2022-05-20 16:45:13.709144850 +0300 +++ Functions/Misc/zed 2022-05-20 16:45:56.313326625 +0300 @@ -18,7 +18,7 @@ fun=$+opts[-f] hist=$+opts[-h] bind=$+opts[-b] -if [[ $opts[-x] == <-> ]]; then +if [[ ${opts[-x]-} == <-> ]]; then expand=(-x $opts[-x]) elif (( $+opts[-x] )); then print -r "Integer expected after -x: $opts[-x]" >&2
next reply other threads:[~2022-05-20 14:07 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-20 14:06 Risto Laitinen [this message] 2022-05-20 14:17 ` Peter Stephenson 2022-05-20 14:39 ` Bart Schaefer 2022-05-20 15:00 ` Bart Schaefer 2022-05-25 9:48 ` Peter Stephenson
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAA-Ti-jiCVGAGF6XMi2axwcwkkHrCGzyvh9Biaf-d=qT443pLg@mail.gmail.com' \ --to=risto.laitinen@gmail.com \ --cc=zsh-workers@zsh.org \ --subject='Re: [PATCH] zed fails with setopt nounset unless option -x is given' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).