zsh error on startup: /etc/zsh/zshrc:unalias:43: no such hash table element: run-help

Bug #305346 reported by x
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)

Bug Description

Binary package hint: zsh

installed zsh on hardy:

apt-cache policy zsh
  Installiert: 4.3.4-24ubuntu1
  Kandidat: 4.3.4-24ubuntu1
 *** 4.3.4-24ubuntu1 0

on startup i get the error:

$ zsh
/etc/zsh/zshrc:unalias:42: no such hash table element: run-help

in /etc/zsh/zshrc i changed line 42 from 'unalias run-help'
to '[[ -e $(alias run-help) ]] && unalias run-help' and it works.

patch attached

Revision history for this message
x (xk2c-deactivatedaccount) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the attachments in this bug report, I noticed that "Patch for /etc/zsh/zshrc" was not flagged as a patch. A patch contains changes to an Ubuntu package that will resolve a bug and this attachment is one! Subsequently, I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. Thanks for your contribution Thilo Six!

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

After using the patch above it doesn't seem to work right.

this one is better.

Revision history for this message
Daniel Hahler (blueyed) wrote :

This is probably caused by you setting up / changing run-help in your ~/.zshrc.
Can you confirm this?

I suggest using the following fix instead of your proposed patch:
unalias run-help &>/dev/null

Also, you might want to consider using this:
% cat ~/.zshenv
setopt noglobalrcs

This would only source your ~/.zshrc, but not the files installed by the distribution.

Changed in zsh (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers