zsh-users
 help / color / mirror / code / Atom feed
* completions broken for root user
@ 2005-09-30 15:58 Scott Lipcon
  2005-10-01 18:40 ` Mike Hernandez
  2005-10-01 18:40 ` Bart Schaefer
  0 siblings, 2 replies; 5+ messages in thread
From: Scott Lipcon @ 2005-09-30 15:58 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

I recently upgraded zsh on my FreeBSD machine, and now the freebsd specific
completions are broken for the root user only...

As my user, if I do:

$ pkg_info zsh<tab>

it completes.

As root:
# pkg_info zsh<tab>
_arguments:340: _bsd_pkg_pkgs_and_files: function definition file not found

# which _bsd_pkg_pkgs_and_files
_bsd_pkg_pkgs_and_files () {
# undefined
builtin autoload -XUz
}

(if I do the same which command as my user, i get the function
definition...)


my $fpath variables are the same in both shells, and both contain
/usr/local/share/zsh/4.2.5/functions/Completion/BSD/, which has the _bsd_pkg
containing that function...

What else should I be looking for?

Thanks,
Scott

[-- Attachment #2: Type: text/html, Size: 1018 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completions broken for root user
  2005-09-30 15:58 completions broken for root user Scott Lipcon
@ 2005-10-01 18:40 ` Mike Hernandez
  2005-10-01 18:40 ` Bart Schaefer
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Hernandez @ 2005-10-01 18:40 UTC (permalink / raw)
  To: Zsh Users

On 9/30/05, Scott Lipcon <slipcon@gmail.com> wrote:
> I recently upgraded zsh on my FreeBSD machine, and now the freebsd specific
> completions are broken for the root user only...
<snip>
>
>  my $fpath variables are the same in both shells, and both contain
> /usr/local/share/zsh/4.2.5/functions/Completion/BSD/, which
> has the _bsd_pkg containing that function...
>

I'm just guessing here, but something like this has happened to me before:
I logged in my "regular" user, and my custom functions worked...
then I used su to become root... and my custom functions stopped working.

Turns out that I forgot that su doesn't source my shell files,
sourcing them manually worked, and su - worked as well.

Mentioning it just in case :)

Mike


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completions broken for root user
  2005-09-30 15:58 completions broken for root user Scott Lipcon
  2005-10-01 18:40 ` Mike Hernandez
@ 2005-10-01 18:40 ` Bart Schaefer
  2005-10-01 20:33   ` Scott Lipcon
  1 sibling, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2005-10-01 18:40 UTC (permalink / raw)
  To: Scott Lipcon, zsh-users

On Sep 30, 11:58am, Scott Lipcon wrote:
}
} What else should I be looking for?

The only thing I can think of is to look for .zwc files that are
readable only by root and which need to be recompiled.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completions broken for root user
  2005-10-01 18:40 ` Bart Schaefer
@ 2005-10-01 20:33   ` Scott Lipcon
  2005-11-30 14:24     ` Scott Lipcon
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Lipcon @ 2005-10-01 20:33 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-users

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

Thanks. I tried removing and recompiling the .zwc files anyway, although
root and my user have different .zsh directories, and each can read its own
files with no problem. There are no .zwc files in the /usr/local/share/zsh
directories so that shouldn't be a problem...

For the other poster, I get the same behavior whether I su or log in as root
- the default shell for root on FreeBSD is csh, so whenever I become root I
just run zsh manually... could that have something to do with it? Running
zsh manually as my user the completions work fine.

Scott



On 10/1/05, Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> On Sep 30, 11:58am, Scott Lipcon wrote:
> }
> } What else should I be looking for?
>
> The only thing I can think of is to look for .zwc files that are
> readable only by root and which need to be recompiled.
>

[-- Attachment #2: Type: text/html, Size: 1170 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completions broken for root user
  2005-10-01 20:33   ` Scott Lipcon
@ 2005-11-30 14:24     ` Scott Lipcon
  0 siblings, 0 replies; 5+ messages in thread
From: Scott Lipcon @ 2005-11-30 14:24 UTC (permalink / raw)
  To: zsh-users; +Cc: Bart Schaefer

for the archives: i finally figured it out - I had an old zcompdump file 
that wasn't being auto-regenerated for some reason.  After deleting 
that, and logging in, completions work fine again.

Scott



Scott Lipcon wrote:
> Thanks.  I tried removing and recompiling the .zwc files anyway, 
> although root and my user have different .zsh directories, and each can 
> read its own files with no problem.   There are no .zwc files in the 
> /usr/local/share/zsh directories so that shouldn't be a problem...
> 
> For the other poster, I get the same behavior whether I su or log in as 
> root - the default shell for root on FreeBSD is csh, so whenever I 
> become root I just run zsh manually... could that have something to do 
> with it?  Running zsh manually as my user the completions work fine.
> 
> Scott
> 
> 
> 
> On 10/1/05, *Bart Schaefer* <schaefer@brasslantern.com 
> <mailto:schaefer@brasslantern.com>> wrote:
> 
>     On Sep 30, 11:58am, Scott Lipcon wrote:
>     }
>     } What else should I be looking for?
> 
>     The only thing I can think of is to look for .zwc files that are
>     readable only by root and which need to be recompiled.
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-30 14:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-30 15:58 completions broken for root user Scott Lipcon
2005-10-01 18:40 ` Mike Hernandez
2005-10-01 18:40 ` Bart Schaefer
2005-10-01 20:33   ` Scott Lipcon
2005-11-30 14:24     ` Scott Lipcon

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).