From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10231 invoked by alias); 5 Apr 2011 13:25:49 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15941 Received: (qmail 7334 invoked from network); 5 Apr 2011 13:25:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Tue, 5 Apr 2011 13:43:34 +0100 From: Peter Stephenson To: Subject: Re: Package information for non-installed programs in ZSH Message-ID: <20110405134334.50a483a7@pwslap01u.europe.root.pri> In-Reply-To: <4D9AFFA0.7090905@math.uni-bremen.de> References: <4D9AFFA0.7090905@math.uni-bremen.de> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.71.0.131 On Tue, 5 Apr 2011 13:40:16 +0200 Oliver Kesz=C3=B6cze wrote: > Using BASH and Ubuntu I get messages such as >=20 > The program 'gcc' can be found in the following packages: > * gcc > * pentium-builder > Try: sudo apt-get install >=20 > if I try to run stuff I do not have currently installed. It will be using a command-not-found handler. You can do this sort of thing in recent versions of zsh if you find out what the back end is... command_not_found_handler() { print "Attempting to locate the command $1..." # if you don't want to consider that the command has been handled... return 1 } % fumble Attempting to locate the command fumble... zsh: command not found: fumble --=20 Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, = UK Member of the CSR plc group of companies. CSR plc registered in England and= Wales, registered number 4187346, registered office Churchill House, Cambr= idge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom