Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176629

Re: reportbug and remapped "edit"

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: reportbug and remapped "edit"
Date 2017-01-12 22:10 +0100
Message-ID <sYUNc-qj-9@gated-at.bofh.it> (permalink)
References (3 earlier) <sYGKd-t5-1@gated-at.bofh.it> <sYQqd-69X-3@gated-at.bofh.it> <sYQqe-69X-31@gated-at.bofh.it> <sYQzU-6d7-13@gated-at.bofh.it> <sYQJA-6gs-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-11 15:30 +0100
  Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-11 16:00 +0100
    Re: reportbug and remapped "edit" Hans <hans.ullrich@loop.de> - 2017-01-11 16:10 +0100
      Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-11 16:40 +0100
  Re: reportbug and remapped "edit" kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-01-12 04:40 +0100
    Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-12 06:00 +0100
      Re: reportbug and remapped "edit" kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-01-12 07:10 +0100
        Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-12 13:30 +0100
        Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-12 17:30 +0100
          Re: reportbug and remapped "edit" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-01-12 17:30 +0100
            Re: reportbug and remapped "edit" Nicolas George <george@nsup.org> - 2017-01-12 17:40 +0100
              Re: reportbug and remapped "edit" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-01-12 17:50 +0100
                Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-12 22:10 +0100
          Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-12 18:30 +0100
      Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-12 13:30 +0100
      Re: reportbug and remapped "edit" kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-01-13 03:00 +0100
        Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-02-07 16:20 +0100
    Re: reportbug and remapped "edit" Nicolas George <george@nsup.org> - 2017-01-12 10:30 +0100
  Re: reportbug and remapped "edit" Jonathan Dowland <jmtd@debian.org> - 2017-01-12 11:10 +0100

csiph-web