From owner-freebsd-questions Thu May 9 09:09:42 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA19415 for questions-outgoing; Thu, 9 May 1996 09:09:42 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA19409 for ; Thu, 9 May 1996 09:09:40 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.7.4/8.7.3) id LAA25050 for freebsd-questions@FreeBSD.org; Thu, 9 May 1996 11:09:36 -0500 (CDT) From: Dan Nelson Message-Id: <199605091609.LAA25050@dan.emsphone.com> Subject: Re: Please Help ... I am locked out of a FreeBSD machine To: freebsd-questions@FreeBSD.org Date: Thu, 9 May 1996 11:09:34 -0500 (CDT) In-Reply-To: <199605090333.NAA01970@genesis.atrad.adelaide.edu.au> from "Michael Smith" at May 9, 96 01:03:57 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk in the last episode, Michael Smith said: > James Raynard stands accused of saying: > > > Branson> chmod 644 -R .??* > > > > I prefer chmod 644 -R .[a-zA-Z]* myself > > > > > Branson> the '?'s will require two characters in the file > > > Branson> name.. not just one which very effectively skips '.' and > > > Branson> '..'. > > > > > > But it unfortunately misses all entries with a name of . followed by a > > > single character: .a, .b, .c, etc. But, hey, close enough! Do those > > > by hand, I say! > > > > You forgot the upper case ones 8-) > > # chmod 644 -R .[^.]* I've been wondering what you all were talking about, since on my machine, "echo .*" does NOT list "." or "..". I checked the man pages for zsh, and sure enough, under "FILENAME GENERATION (GLOBBING)", I see: No filename generation pattern matches the files "." or "..". Can ash maybe be patched to do this also? I can't think of a case where you would EVER want to match '.' or '..' in a wildcard. -Dan Nelson dan@dan.emsphone.com