[24238] in Source-Commits
Re: /svn/athena r23837 - trunk/debathena/scripts
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Jun 8 05:03:28 2009
From: Greg Hudson <ghudson@MIT.EDU>
To: Benjamin Kaduk <kaduk@mit.edu>
Cc: Geoffrey Thomas <geofft@mit.edu>, source-commits@mit.edu
In-Reply-To: <alpine.GSO.1.10.0906080327520.17043@multics.mit.edu>
Content-Type: text/plain
Date: Mon, 08 Jun 2009 05:03:18 -0400
Message-Id: <1244451798.20017.46.camel@ray>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
On Mon, 2009-06-08 at 03:29 -0400, Benjamin Kaduk wrote:
> > + if [ "$yn" != "yes" ]; then
> Um, I am confused. If I reply "yes" to the question "Is that a good
> idea?", then the script dies.
I think you misread the sense of the test. However, I think the
question may be using confusing syntax:
> + echo -n "which is probably backwards. Is that a good idea [yes/N]? "
Often, brackets used like that indicate a default, but here they are
used to list the possible options.