Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #172858
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Substring search in dash [ _NOT_ bash ] shell |
| Date | 2016-09-27 17:30 +0200 |
| Message-ID | <sm2ut-2I8-9@gated-at.bofh.it> (permalink) |
| References | <sm0VI-1H1-33@gated-at.bofh.it> <sm2b7-2BP-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Sep 27, 2016 at 05:05:08PM +0200, Thomas Schmitt wrote: > Greg Wooledge wrote: > > Do not use -o and -a in a test command. > > http://mywiki.wooledge.org/BashPitfalls#pf6 > > As if anybody would dare to touch the old "test" command. :)) > > Rather i avoid "[" brackets, not to allow any implementor an excuse. > But in plaintext mode i wanted to stay near to the given original example. > It worked when i tested in dash and bash. The test and [ commands have the same features and limitations. The only difference is the final argument of [ has to be ]. People do run into the problem occasionally in real life: https://lists.gnu.org/archive/html/bug-bash/2015-07/msg00125.html But, I will admit it's rare. (And hard to Google, though this is mostly due to Google's extremely inconvenient refusal to let you use punctuation in searches.)
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Substring search in dash [ _NOT_ bash ] shell Richard Owlett <rowlett@cloud85.net> - 2016-09-26 17:50 +0200
Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 10:10 +0200
Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 10:50 +0200
Re: Substring search in dash [ _NOT_ bash ] shell Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-27 15:50 +0200
Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 17:10 +0200
Re: Substring search in dash [ _NOT_ bash ] shell Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-27 17:30 +0200
Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 18:00 +0200
csiph-web