From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18821 invoked from network); 4 Mar 2000 12:21:52 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Mar 2000 12:21:51 -0000 Received: (qmail 716 invoked by alias); 4 Mar 2000 12:21:33 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2940 Received: (qmail 703 invoked from network); 4 Mar 2000 12:21:32 -0000 Date: Sat, 4 Mar 2000 12:43:29 +0100 From: =?iso-8859-1?Q?Thomas_K=F6hler?= To: zsh-users@sunsite.auc.dk Subject: Re: zsh tips for "UNIX Power Tools" Message-ID: <20000304124329.C1805@picard.franken.de> Mail-Followup-To: =?iso-8859-1?Q?Thomas_K=F6hler?= , zsh-users@sunsite.auc.dk References: <28174.952013581@jpeek.com> <20000303123932.A11036@picard.franken.de> <87k8jjwt6h.fsf@cenderis.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.1.7i In-Reply-To: <87k8jjwt6h.fsf@cenderis.demon.co.uk>; from bruce+zsh@cenderis.demon.co.uk on Sat, Mar 04, 2000 at 12:08:21AM +0100 X-Operating-System: Linux picard 2.2.14 X-Editor: VIM - Vi IMproved 5.6 http://www.vim.org/ X-IRC: tirc-1.2; Nick: jeanluc X-URL: http://jeanluc-picard.de/ On Sat, Mar 04, 2000 at 12:08:21AM +0100, Bruce Stephens wrote: >=20 > Thomas K=F6hler writes: >=20 > [...] >=20 > > And this one: > > chmod 755 **/*(/) > > chmod 644 **/*(.) > > Hey, all directories are mode 755, while all plain files are mode 644! > > Again, no find is necessary, as would be for bash: > > find . -type d -exec chmod 755 {} \; > > find . -type f -exec chmod 644 {} \; >=20 > What's wrong with >=20 > chmod -R go+rX . It simply sets wrong permissions :-) (and not every chmod has -R, which is bad) [from "man chmod"]: The letters `rwxXstugo' select the new permissions for the affected users: [...] execute only if the file is a directory or already has execute permission for some user (X) Oops - there's already some plain file mode 755 which I want to have mode 644 - your solution won't work... > [...] >=20 > > - Why not simply use ^Xh instead of ^X^H? Now, I have a feature of > > zsh-3.1.6-dev-xx on ^Xh: > > bindkey "^Xh" _complete_help >=20 > Why not use M-h, which is built-in, I think. I don't remember > configuring it, anyway. I don't like M-h :-) (well, and I use ^X for further mappings, so it is simply consistent) CU, Thomas --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships