zsh-workers
 help / color / mirror / code / Atom feed
From: Ulrik Haugen <qha@lysator.liu.se>
To: zsh-workers@sunsite.dk
Subject: Re: BUG: cd '' doesn't produce an error
Date: Wed, 04 Jan 2006 20:48:23 +0100	[thread overview]
Message-ID: <874q4jn5a0.fsf@haugen.visit.se> (raw)
In-Reply-To: <20051230162841.GA30078@dot.blorf.net>

Wayne Davison <wayned@users.sourceforge.net> wrote:
> 1.  Specify "setopt no_unset err_exit" in the script.  This will ensure
>     that no unset variable will ever be silently expanded into an empty
>     string unless you explicitly request it via ${FOO:-} .

These sound like very good ideas, in fact no_unset went into my .zshrc
right away. I'll try to remember these when i write zsh scripts in the
future, it shouldn't be much worse than remembering to use strict and
warnings in perl.

I'm not sure I'll be as likely to remember it when I'm debugging a sh
script and just switch to zsh to see if I've accidentally used some
zshism though, especially since I'll usually want to switch back
afterwards. :|


  parent reply	other threads:[~2006-01-04 19:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-21  2:03 Ulrik Haugen
2005-12-21 10:21 ` Peter Stephenson
2005-12-30 12:52   ` Ulrik Haugen
2005-12-30 16:28     ` Wayne Davison
2006-01-04 17:32       ` Wayne Davison
2006-01-04 19:48       ` Ulrik Haugen [this message]
2006-01-04 11:41     ` Peter Stephenson
2006-01-04 13:06       ` Peter Stephenson
2006-01-04 17:48       ` Peter Stephenson
2006-01-04 22:30       ` Ulrik Haugen
2006-01-05 12:29         ` 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=874q4jn5a0.fsf@haugen.visit.se \
    --to=qha@lysator.liu.se \
    --cc=zsh-workers@sunsite.dk \
    /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).