Re: Coprocess terminated, pipe closed before I read the data out

2016-04-14 Thread Chet Ramey
On 4/13/16 1:13 AM, George wrote: > Users can work around this by duplicating the file descriptor: > $ exec {fd_that_wont_vanish_on_me}<&${coproc[0]}- > But it kind of negates the benefit of having coproc accept a name for > the fd array if you just wind up having to re-bind it anyway. And the > c

Re: Avoid asterisk expansion when it selects "everything"

2016-04-14 Thread Stephane Chazelas
2016-04-13 11:23:01 +, Anis ELLEUCH: > Hello everybody, > > I would like to ask if it is possible to disable expanding asterisk when it > selects all entries ? > > `$ rm * .jpg` with a mistaken space between asterisk and .jpg will delete > everything in your home directory or in the entire di

Re: Avoid asterisk expansion when it selects "everything"

2016-04-14 Thread Andreas Schwab
Mike Frysinger writes: > On 14 Apr 2016 09:23, Andreas Schwab wrote: >> Mike Frysinger writes: >> > alternative idea: alias your rm/mv/etc... commands if you're worried >> > about them. it's not uncommon to do in ~/.bashrc or wherever: >> >alias rm='rm -i' >> >> That's the worst advice you

Re: Avoid asterisk expansion when it selects "everything"

2016-04-14 Thread Mike Frysinger
On 14 Apr 2016 09:23, Andreas Schwab wrote: > Mike Frysinger writes: > > alternative idea: alias your rm/mv/etc... commands if you're worried > > about them. it's not uncommon to do in ~/.bashrc or wherever: > > alias rm='rm -i' > > That's the worst advice you can give. hyperbole much ? >

Re: Avoid asterisk expansion when it selects "everything"

2016-04-14 Thread Andreas Schwab
Mike Frysinger writes: > alternative idea: alias your rm/mv/etc... commands if you're worried > about them. it's not uncommon to do in ~/.bashrc or wherever: > alias rm='rm -i' That's the worst advice you can give. If you lose the alias for whatever reason you get silent failure. Andrea