Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: peter@nmti.com (Peter da Silva)
Subject: Re: chown-oddities?
Date: Thu, 10 Nov 1994 21:26:40 GMT	[thread overview]
Message-ID: <id.5BME1.BX7@nmti.com> (raw)
In-Reply-To: 39sn7h$gjl@hermes.uni-konstanz.de

In article <39sn7h$gjl@hermes.uni-konstanz.de>,
Eberhard Heuser-Hofmann <vaxinf@chclu.chemie.uni-konstanz.de> wrote:
> I'm not sure if it's a feature of chown or a bug of OSF/1 V3.0:

It's neither. It's an inevitable result of the file system design.

".*" expands to "all files beginning with "." which expands to ". .. .cshrc
.login ...". Then "chown -r" takes each of these files and recursively chowns
everything it finds.

So it looks at "." and does ". ./* ./*/* ..."

Then it looks at ".." and does "../ ../* ../*/* ..."

By now you've chowned everything from the parent directory to "." onwards.

> Remark: why is there no verbose-option in chown to see what happens?

"find $args -print" will do that...

I generally assume I don't have anything named ".a .b .c ..." and use ".??*".
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


  reply	other threads:[~1994-11-10 21:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-10  8:56 chown-oddities? Eberhard Heuser-Hofmann
1994-11-10 21:26 ` Peter da Silva [this message]
1994-11-11 15:34 ` chown-oddities? Paul Southworth
1994-11-12  1:13   ` chown-oddities? Phil Knaack
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox