Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #199442
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: sometimes i go huh (grep result) |
| Date | 2018-08-27 18:20 +0200 |
| Message-ID | <wrspc-l0-27@gated-at.bofh.it> (permalink) |
| References | <wrrt7-8e8-9@gated-at.bofh.it> <wrrCO-8hh-5@gated-at.bofh.it> <wrrCO-8hh-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Aug 27, 2018 at 11:26:12AM -0400, Greg Wooledge wrote: > On Mon, Aug 27, 2018 at 11:20:42AM -0400, Roberto C. Sánchez wrote: > > env |grep [-]g > > Fails if there is a file named -g in the current directory, as that > matches the unquoted glob and causes it to expand. Also fails if failglob > is turned on, whether the file exists or not (fails differently in the > two cases). > > Also fails if nullglob is turned on, but that is definitely not > recommended in interactive shells. > Quite right. In my haste I forgot the quotes: env |grep '[-]g' -- Roberto C. Sánchez
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
sometimes i go huh (grep result) songbird <songbird@anthive.com> - 2018-08-27 17:20 +0200
Re: sometimes i go huh (grep result) Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-27 17:30 +0200
Re: sometimes i go huh (grep result) Roberto C. Sánchez <roberto@debian.org> - 2018-08-27 18:20 +0200
Re: sometimes i go huh (grep result) Roberto C. Sánchez <roberto@debian.org> - 2018-08-27 17:30 +0200
Re: sometimes i go huh (grep result) Nicolas George <george@nsup.org> - 2018-08-27 17:30 +0200
Re: sometimes i go huh (grep result) Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2018-08-27 20:10 +0200
csiph-web