Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Juanma 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: 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" To: Greg Wooledge 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11308 El Fri 7 of Aug, Greg Wooledge profiri=F3 estas palabras: > > Those brackets I cited above: ( expression ) > In the US we call those "parentheses", and we reserve the word "brack= ets" > (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 "na= tural" word for me (as Eduardo noted).=20 [...] > [ is an ordinary command (a "shell builtin") Here is another point I find confusing: I thought a "shell builtin" did= n't have a separate binary executable file, like 'cd' (which cd =3D> fa= il), but some of them do have such form (which [ =3D> /usr/bin/[ ; whic= h pwd =3D> /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 incon= venient 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 [[. >=20 > Use one of the syntaxes I've shown here. Huge thanks. It was a good explanation. --=20 Juanma Men=E9ndez