Re: Strange file -i

2015-03-05 Thread Mike Frysinger
On 05 Mar 2015 15:20, Chet Ramey wrote: > On 3/4/15 6:07 PM, Stephane Chazelas wrote: > > $ perl -ne 'print if /foo/' * > > I just use grep directly. fwiw, git has a grep helper. this tends to be faster than a plain grep since it automatically filters out ignored files. you just have to remem

Re: Strange file -i

2015-03-05 Thread Chet Ramey
On 3/5/15 3:52 PM, Stephane Chazelas wrote: > 2015-03-05 15:20:44 -0500, Chet Ramey: > [...] >> For example, I never do this: >> >>> $ perl -ne 'print if /foo/' * >> >> I just use grep directly. > > That was just a basic example. > > What about: > > sed 's/foo/bar/g' * > > ? Yes, I literally n

Re: Strange file -i

2015-03-05 Thread Stephane Chazelas
2015-03-05 15:20:44 -0500, Chet Ramey: [...] > For example, I never do this: > > > $ perl -ne 'print if /foo/' * > > I just use grep directly. That was just a basic example. What about: sed 's/foo/bar/g' * ? > Or this: > > > rm -- * [...] Then, you're in for some bad surprise some day. Yo

Re: Strange file -i

2015-03-05 Thread Chet Ramey
On 3/4/15 6:07 PM, Stephane Chazelas wrote: > 2015-03-04 09:25:46 -0600, John McKown: >> On Wed, Mar 4, 2015 at 7:43 AM, Eric Blake wrote: >>> On 03/04/2015 01:44 AM, Jean Delvare wrote: Hi Chet, Did you really intend to create an empty file named "-i" in http://git.savannah.gn

Re: Strange file -i

2015-03-04 Thread Mike Frysinger
On 04 Mar 2015 23:07, Stephane Chazelas wrote: > Note that only GNU utilities (or utilities using GNU getopt > without enforcing standard mode) accept options after arguments. nice that they do too. it's super obnoxious having to manually sort flags. i hate having to use BSD systems w/out GNU use

Re: Strange file -i

2015-03-04 Thread Stephane Chazelas
2015-03-04 09:25:46 -0600, John McKown: > On Wed, Mar 4, 2015 at 7:43 AM, Eric Blake wrote: > > On 03/04/2015 01:44 AM, Jean Delvare wrote: > >> Hi Chet, > >> > >> Did you really intend to create an empty file named "-i" in > >> http://git.savannah.gnu.org/cgit/bash.git/diff/?id=43aebe922bc2a614c4

Re: Strange file -i

2015-03-04 Thread Jean Delvare
Hi Eric, Le Wednesday 04 March 2015 à 06:43 -0700, Eric Blake a écrit : > On 03/04/2015 01:44 AM, Jean Delvare wrote: > > Did you really intend to create an empty file named "-i" in > > http://git.savannah.gnu.org/cgit/bash.git/diff/?id=43aebe922bc2a614c410e282fdf772e063454168 > > ? > > Yes: htt

Re: Strange file -i

2015-03-04 Thread John McKown
On Wed, Mar 4, 2015 at 7:43 AM, Eric Blake wrote: > On 03/04/2015 01:44 AM, Jean Delvare wrote: >> Hi Chet, >> >> Did you really intend to create an empty file named "-i" in >> http://git.savannah.gnu.org/cgit/bash.git/diff/?id=43aebe922bc2a614c410e282fdf772e063454168 >> ? > > Yes: https://lists.

Re: Strange file -i

2015-03-04 Thread Eric Blake
On 03/04/2015 01:44 AM, Jean Delvare wrote: > Hi Chet, > > Did you really intend to create an empty file named "-i" in > http://git.savannah.gnu.org/cgit/bash.git/diff/?id=43aebe922bc2a614c410e282fdf772e063454168 > ? Yes: https://lists.gnu.org/archive/html/bug-bash/2014-07/msg00075.html -- Er

Strange file -i

2015-03-04 Thread Jean Delvare
Hi Chet, Did you really intend to create an empty file named "-i" in http://git.savannah.gnu.org/cgit/bash.git/diff/?id=43aebe922bc2a614c410e282fdf772e063454168 ? Thanks, -- Jean Delvare SUSE L3 Support