Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11308

Re: Worth mentioning in documentation

Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From Juanma <juan-manuel.menendez@tecsidel.es>
Newsgroups gnu.bash.bug
Subject Re: Worth mentioning in documentation
Date Mon, 10 Aug 2015 10:18:52 +0200
Lines 41
Approved bug-bash@gnu.org
Message-ID <mailman.8064.1439194743.904.bug-bash@gnu.org> (permalink)
References <3156909.AJj7susDjE@debxuan> <2473887.nPWqTkAiyd@debxuan> <20150807122454.GU4309@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1439194744 18409 208.118.235.17 (10 Aug 2015 08:19:04 GMT)
X-Complaints-To action@cs.stanford.edu
Cc "bug-bash@gnu.org" <bug-bash@gnu.org>
To Greg Wooledge <wooledg@eeg.ccf.org>
Envelope-to bug-bash@gnu.org
User-Agent KMail/4.14.1 (Linux/4.0.0-2-amd64; KDE/4.14.2; x86_64; ; )
In-Reply-To <20150807122454.GU4309@eeg.ccf.org>
X-detected-operating-system by eggs.gnu.org: Windows NT kernel [generic]
X-Received-From 195.55.83.74
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11308

Show key headers only | View raw


El Fri 7 of Aug, Greg Wooledge profirió estas palabras:
> > Those brackets I cited above: ( expression )
> In the US we call those "parentheses", and we reserve the word "brackets"
> (or "square brackets") for [ ].  I realize that the UK uses different
> terminology.  Hence, the word is ambiguous and you should always type
> the actual characters you mean.

Lesson learned.
I didn't mean to enforce UK wording; I just forgot there was a more "natural" word for me (as Eduardo noted). 

[...]
> [ is an ordinary command (a "shell builtin")

Here is another point I find confusing: I thought a "shell builtin" didn't have a separate binary executable file, like 'cd' (which cd => fail), but some of them do have such form (which [ => /usr/bin/[ ; which pwd => /bin/pwd). I also fail to see how 'test' modifies the state of the shell itself (like 'cd' does), or why it is "impossible or inconvenient to obtain [its functionality] with separate utilities".

But that's another story.

> You were reading the section on [[ and assuming that it applies to [.
> That's a huge mistake.
[...]
> Do not use -a or -o.  They might as well not EXIST.  Just forget them.
> You can't use them in [ and you can't use them in test and you can't
> use them in [[.
> 
> Use one of the syntaxes I've shown here.

Huge thanks. It was a good explanation.
-- 
Juanma Menéndez

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Worth mentioning in documentation Juanma <juan-manuel.menendez@tecsidel.es> - 2015-08-10 10:18 +0200

csiph-web