zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: abort if any error
Date: Fri, 6 Aug 2021 11:42:14 -0700	[thread overview]
Message-ID: <9b2bd9dd-2769-01c7-8650-39eb9e260a67@eastlink.ca> (raw)

$ . wonderful_function; wonderful_function

[scrolls off the page ]

But, ooops, my last tweak to the function busted something so it wasn't 
sourced and what ran was the previous version.  Is there some way of 
forcing any script or command line or anything at all to stop 
unconditionally in case of an error on sourcing?  I can't think of a 
situation where I'd not want to stop and fix it.  If it were possible 
I'd bolt that on right at configuration.  I'm betting it can be done.




             reply	other threads:[~2021-08-06 18:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-06 18:42 Ray Andrews [this message]
2021-08-06 21:07 ` Bart Schaefer

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=9b2bd9dd-2769-01c7-8650-39eb9e260a67@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).