zsh-users
 help / color / mirror / code / Atom feed
* startup warnings
@ 2009-03-28  1:21 rj
  2009-03-28 15:30 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: rj @ 2009-03-28  1:21 UTC (permalink / raw)
  To: zsh-users

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

Bart Schaefer wrote:
> Ah.  Try removing ~/.zcompdump* (or removing $ZDOTDIR/.zcompdump* if
> you have set ZDOTDIR to point away from your home directory).


That did no good, and I don't use a ZDOTDIR.

Right now I have in .zshrc:

     fpath+=(~/.zfunc)

But I don't know if this is correct, because if I put, in .zshenv:

      export FPATH=fpath+=(~/.zfunc)

I get the warnings on startup again.  I don't get the warnings
if I comment out the

      export FPATH=

line in .zshenv.

Again the functions dir is:

[shell:~]  [v4.3.9]  zsh  1003 --> ls -la
/usr/local/share/zsh/4.3.9/functions
total 890K
  2K drwxr-xr-x 13 root wheel    512 Mar 23 14:24 ./
  2K drwxr-xr-x  4 root wheel    512 Mar 23 14:24 ../
  2K drwxr-xr-x  2 root wheel    512 Mar 23 14:24 Calendar/
 80K -rw-r--r--  1 root wheel  80144 Mar 23 14:24 Calendar.zwc
  2K drwxr-xr-x 14 root wheel   1024 Mar 23 14:24 Completion/
172K -rw-r--r--  1 root wheel 175240 Mar 23 14:24 Completion.zwc
  2K drwxr-xr-x  2 root wheel    512 Mar 23 14:24 Exceptions/
  2K -rw-r--r--  1 root wheel   1728 Mar 23 14:24 Exceptions.zwc
  2K drwxr-xr-x  2 root wheel    512 Mar 23 14:24 MIME/
 32K -rw-r--r--  1 root wheel  30792 Mar 23 14:24 MIME.zwc
  2K drwxr-xr-x  2 root wheel    512 Mar 23 14:24 Misc/
124K -rw-r--r--  1 root wheel 126592 Mar 23 14:24 Misc.zwc
  2K drwxr-xr-x  2 root wheel    512 Mar 23 14:24 Newuser/
 54K -rw-r--r--  1 root wheel  53760 Mar 23 14:24 Newuser.zwc
  2K drwxr-xr-x  2 root wheel   1024 Mar 23 14:24 Prompts/
 80K -rw-r--r--  1 root wheel  80032 Mar 23 14:24 Prompts.zwc
  2K drwxr-xr-x  2 root wheel    512 Mar 23 14:24 TCP/
 72K -rw-r--r--  1 root wheel  73144 Mar 23 14:24 TCP.zwc
  2K drwxr-xr-x  3 root wheel    512 Mar 23 14:24 VCS_Info/
 22K -rw-r--r--  1 root wheel  21744 Mar 23 14:24 VCS_Info.zwc
  2K drwxr-xr-x  2 root wheel   1024 Mar 23 14:24 Zftp/
 98K -rw-r--r--  1 root wheel  99512 Mar 23 14:24 Zftp.zwc
  2K drwxr-xr-x  2 root wheel   1536 Mar 23 14:24 Zle/
128K -rw-r--r--  1 root wheel 130472 Mar 23 14:24 Zle.zwc

Back to the manpage. . . .


[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: startup warnings
  2009-03-28  1:21 startup warnings rj
@ 2009-03-28 15:30 ` Bart Schaefer
  2009-03-28 23:45   ` Russell Hoover
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2009-03-28 15:30 UTC (permalink / raw)
  To: zsh-users

On Mar 27,  9:21pm, rj wrote:
}
} Right now I have in .zshrc:
} 
}      fpath+=(~/.zfunc)

That should be fine.

} But I don't know if this is correct, because if I put, in .zshenv:
} 
}       export FPATH=fpath+=(~/.zfunc)

No, FPATH is a colon-delimited list of strings which is created by
contactenating the elements of the fpath array.  The above either
will choke with "unknown file attribute" or, if you've somehow
disabled globbing, store the useless string "fpath+=(~/.zfunc)" in 
both FPATH and fpath.


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

* Re: startup warnings
  2009-03-28 15:30 ` Bart Schaefer
@ 2009-03-28 23:45   ` Russell Hoover
  2009-03-28 23:55     ` rj
  2009-03-29  0:37     ` Bart Schaefer
  0 siblings, 2 replies; 5+ messages in thread
From: Russell Hoover @ 2009-03-28 23:45 UTC (permalink / raw)
  To: zsh-users

On Sat 03/28/09 at 08:30 AM -0700,
Bart Schaefer <schaefer@brasslantern.com> wrote:

> } But I don't know if this is correct, because if I put, in .zshenv:
> }       export FPATH=fpath+=(~/.zfunc)

> No, FPATH is a colon-delimited list of strings which is created by
> contactenating the elements of the fpath array.  The above either
> will choke with "unknown file attribute" or, if you've somehow
> disabled globbing, store the useless string "fpath+=(~/.zfunc)" in
> both FPATH and fpath.


But that can't mean that I should put the following in .zshenv:

export \
FPATH=/usr/local/share/zsh/site-functions:/usr/local/share/zsh/4.3.9/functions/Calendar:/usr/local/share/zsh/4.3.9/functions/Completion:/usr/local/share/zsh/4.3.9/functions/Completion/AIX:/usr/local/share/zsh/4.3.9/functions/Completion/BSD:/usr/local/share/zsh/4.3.9/functions/Completion/Base:/usr/local/share/zsh/4.3.9/functions/Completion/Cygwin:/usr/local/share/zsh/4.3.9/functions/Completion/Darwin:/usr/local/share/zsh/4.3.9/functions/Completion/Debian:/usr/local/share/zsh/4.3.9/functions/Completion/Linux:/usr/local/share/zsh/4.3.9/functions/Completion/Mandriva:/usr/local/share/zsh/4.3.9/functions/Completion/Redhat:/usr/local/share/zsh/4.3.9/functions/Completion/Unix:/usr/local/share/zsh/4.3.9/functions/Completion/X:/usr/local/share/zsh/4.3.9/functions/Completion/Zsh:/usr/local/share/zsh/4.3.9/functions/Exceptions:/usr/local/share/zsh/4.3.9/functions/MIME:/usr/local/share/zsh/4.3.9/functions/Misc:/usr/local/share/zsh/4.3.9/functions/Newuser:/usr/local/share/zsh/4.3.9/functions/Prompts:/usr/local/share/zsh/4.3.9/functions/TCP:/usr/local/share/zsh/4.3.9/functions/VCS_Info:/usr/local/share/zsh/4.3.9/functions/VCS_Info/Backends:/usr/local/share/zsh/4.3.9/functions/Zftp:/usr/local/share/zsh/4.3.9/functions/Zle:/u/q/.zfunc

I'm guessing there's got to be a way to shorten this.

Also, is it normal or okay for an installation of zsh on a FreeBSD system
to have all these Completion subdirs for all these other systems?? :

[shell:~]  [v4.3.9]  zsh/+1  1020 --> print -l $fpath
q0  Saturday  2009/03/28  19:23:10
/usr/local/share/zsh/site-functions
/usr/local/share/zsh/4.3.9/functions/Calendar
/usr/local/share/zsh/4.3.9/functions/Completion
/usr/local/share/zsh/4.3.9/functions/Completion/AIX
/usr/local/share/zsh/4.3.9/functions/Completion/BSD
/usr/local/share/zsh/4.3.9/functions/Completion/Base
/usr/local/share/zsh/4.3.9/functions/Completion/Cygwin
/usr/local/share/zsh/4.3.9/functions/Completion/Darwin
/usr/local/share/zsh/4.3.9/functions/Completion/Debian
/usr/local/share/zsh/4.3.9/functions/Completion/Linux
/usr/local/share/zsh/4.3.9/functions/Completion/Mandriva
/usr/local/share/zsh/4.3.9/functions/Completion/Redhat
/usr/local/share/zsh/4.3.9/functions/Completion/Unix
/usr/local/share/zsh/4.3.9/functions/Completion/X
/usr/local/share/zsh/4.3.9/functions/Completion/Zsh
/usr/local/share/zsh/4.3.9/functions/Exceptions
/usr/local/share/zsh/4.3.9/functions/MIME
/usr/local/share/zsh/4.3.9/functions/Misc
/usr/local/share/zsh/4.3.9/functions/Newuser
/usr/local/share/zsh/4.3.9/functions/Prompts
/usr/local/share/zsh/4.3.9/functions/TCP
/usr/local/share/zsh/4.3.9/functions/VCS_Info
/usr/local/share/zsh/4.3.9/functions/VCS_Info/Backends
/usr/local/share/zsh/4.3.9/functions/Zftp
/usr/local/share/zsh/4.3.9/functions/Zle
/u/q/.zfunc

Shouldn't the sysadmin leave the BSD Completion subdir in, and get rid of
the rest of them?  Should I tell him to do that?  Or does it matter?  Are
such extras typically left in?

I think I'm the only one on this small system (of only 30 or 40 logins at
any given time) who uses zsh.


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

* Re: startup warnings
  2009-03-28 23:45   ` Russell Hoover
@ 2009-03-28 23:55     ` rj
  2009-03-29  0:37     ` Bart Schaefer
  1 sibling, 0 replies; 5+ messages in thread
From: rj @ 2009-03-28 23:55 UTC (permalink / raw)
  To: zsh-users

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

On Sat 03/28/09 at 07:45 PM -0400, rj <rj@panix.com> wrote:

> But that can't mean that I should put the following in .zshenv:

> export \
> FPATH=/usr/local/share/zsh/site-functions:/usr/local/share/zsh/4.3.9/functions/Calendar:/usr

[etc]


Sorry -- I hadn't yet seen the following when I wrote that:

> There's also really no reason to export FPATH, because it's not used
> by any program other than zsh and zsh will always reset it on startup
> (and you can't combine += syntax and "export" in one statement).



[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: startup warnings
  2009-03-28 23:45   ` Russell Hoover
  2009-03-28 23:55     ` rj
@ 2009-03-29  0:37     ` Bart Schaefer
  1 sibling, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2009-03-29  0:37 UTC (permalink / raw)
  To: zsh-users

On Mar 28,  7:45pm, Russell Hoover wrote:
}
} Shouldn't the sysadmin leave the BSD Completion subdir in, and get rid
} of the rest of them? Should I tell him to do that? Or does it matter?
} Are such extras typically left in?

They're split up the way they are so that if necessary the unused ones
can be discarded, but as they're all loaded only on demand anyway, it
really doesn't make much difference if they're present unless you're
on an underpowered system where searching the directories slows down
command execution in a noticeable way.

It's probably safe to say that they're "typically left in" just because
they're part of the standard distribution and most packagers don't drop
bits and pieces when they redistribute.


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

end of thread, other threads:[~2009-03-29  0:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-28  1:21 startup warnings rj
2009-03-28 15:30 ` Bart Schaefer
2009-03-28 23:45   ` Russell Hoover
2009-03-28 23:55     ` rj
2009-03-29  0:37     ` Bart Schaefer

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