[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: reportbug and remapped "edit"



On Thu 12 Jan 2017 at 11:44:52 (-0500), Greg Wooledge wrote:
> On Thu, Jan 12, 2017 at 05:34:52PM +0100, Nicolas George wrote:
> > Le tridi 23 nivôse, an CCXXV, Greg Wooledge a écrit :
> > > $ (unalias edit; reportbug)
> > > 
> > > I'd be very shocked if that doesn't work in zsh.
> > 
> > I'd be very shocked if that did anything useful with any shell.
> 
> Oh.  You're right.  Wow, aliases are horrible.

Not too horrible to use for simple static substitution.
I don't want to have to type things like
~/bin/midi2ly --start-quant=16 --duration-quant=16 --explicit-durations
or remember which way round to type font sizes in
setfont Lat15-Terminus20x10
But I'd agree they're not fit for juggling with.

> wooledg@wooledg:~$ type foo
> foo is aliased to `echo bar'
> wooledg@wooledg:~$ unalias foo; foo
> bar
> wooledg@wooledg:~$ foo
> bash: foo: command not found
> 
> Bah!

Sure, but you can't say you weren't warned!
"always put alias definitions on a separate line, and do not use alias
in compound commands."

But if the alias is not meant to affect the operation of reportbug,
it is odd that unsetting it appears (according to the OP) to fix
their problem.

Cheers,
David.


Reply to: