From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28391 invoked from network); 7 Oct 1999 15:42:38 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Oct 1999 15:42:38 -0000 Received: (qmail 21226 invoked by alias); 7 Oct 1999 15:42:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8165 Received: (qmail 21219 invoked from network); 7 Oct 1999 15:42:31 -0000 From: "Bart Schaefer" Message-Id: <991007154217.ZM27101@candle.brasslantern.com> Date: Thu, 7 Oct 1999 15:42:17 +0000 In-Reply-To: Comments: In reply to Zefram "Re: PATCH: emulate (Re: Prompt fun)" (Oct 7, 4:11pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: emulate (Re: Prompt fun) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 7, 4:11pm, Zefram wrote: } Subject: Re: PATCH: emulate (Re: Prompt fun) } } Bart Schaefer wrote: } >resetting the prompt-expansion options will cause the } >user's settings to display as garbage } } I changed them to *not* be set by emulate. Ah, sorry, I read that hunk backwards. } With ERR_EXIT, I was imagining that a user might set the option in a } script (it can be quite convenient in scripts run from make), and then } call a function that doesn't want ERR_EXIT set -- the function should } decide for itself how to handle errors. Hmm. I tend to think of it exactly the opposite way -- if I set errexit, I generally want it to continue to apply down through functions I call, because of exactly the circumstances you note -- scripts run from make, which uses -e when it invokes the shell. } >} The patch quoted above is still necessary; EXTENDED_GLOB is unset } >} by default even in zsh mode. Would changing that break any scripts? } > } >Yes, it would break some of my scripts. } } A pity. If emacs vc didn't have a tendency to create files with names that look like basename~version~ it'd be less of a problem, because I already habitually quote carats (some old Bourne shells read carat as pipe, from the days when many keyboards lacked a vertical bar). -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com