zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Henrik Johansson <henrik.johansson.kank@mail.se>
Cc: zsh-users@zsh.org
Subject: Re: Problem after upgrade from 4.3 to 5.2
Date: Sat, 16 Apr 2016 02:42:55 +0200	[thread overview]
Message-ID: <12614.1460767375@thecus.kiddle.eu> (raw)
In-Reply-To: <57116948.903@mail.se>

Henrik Johansson wrote:
>
> After upgrade of zsh I got a problem with completion.
> In this example I write 'ls -l .z<TAB>
>
> server.user 1045> ls -l .zenable: printer "-p" non-existent

There's a name clash for "enable" / "disable" between the shell builtins
and external commands for enabling/disabling printers.

> The solution seems to be an update to /etc/zshrc, I commented the 
> following line:
> disable enable disable
>
> What was the purpose of 'disable enable disable', what are we missing now?

You probably had that there so that typing enable or disable would
get you the external commands instead of the builtins. That line
disables the builtins. So if you remove that line, you'll have to type
/bin/enable explicitly to enable printers.

I'm not quite sure what the completion system is running enable for but
it probably ought to check $builtins[enable] to check for this
situation. You're probably not the only person to have the disabled
enable.

I've also run into problems with completion relying on pushd in one
place as I disable (and replace) pushd.

Oliver


  reply	other threads:[~2016-04-16  0:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15 22:20 Henrik Johansson
2016-04-16  0:42 ` Oliver Kiddle [this message]
2016-04-16  4:35   ` Bart Schaefer
2016-04-16  4:48 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12614.1460767375@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=henrik.johansson.kank@mail.se \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).