X-Spam-Check-By: sourceware.org
Date: Sun, 29 Oct 2006 16:06:46 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Lloyd Zusman <ljz@asfast.com>
cc: cygwin@cygwin.com
Subject: Re: Changing Windows "hidden" and "system" attributes?
In-Reply-To: <loom.20061028T031119-796@post.gmane.org>
Message-ID: <Pine.GSO.4.63.0610291603480.22731@access1.cims.nyu.edu>
References: <loom.20061028T031119-796@post.gmane.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Sat, 28 Oct 2006, Lloyd Zusman wrote:

> Thorsten Kampe <thorsten <at> thorstenkampe.de> writes:
>
> > * Lloyd Zusman (Fri, 27 Oct 2006 11:49:51 +0000 (UTC))
> > >
> > > Cygwin offers the "-W, --windows" extension to ps and the regtool,
> > > getfacl, and setfacl commands (to name but three) which offer
> > > Windows-specific (i.e., non-Linux) capabilities.
> >
> > I see your point regarding get/setfacl and regtool. As far as I know
> > these offer a different approach and somewhat different functionality
> > than cacls/xcacls and reg.exe. There's also a Cygwin ping.
> >
> > The question is here: what could a Cygwin attrib do (or do
> > differently) that the native attrib does not?
>
> Well, for one thing, things like this don't work:
>
>   find . -type f -print | xargs attrib
>
> Yes, I know that I could put a wrapper script around attrib to apply
> cygpath to the argument, to name but one of several ways to solve this.
> In fact, I have already done this, thereby making my own
> cygwin-compliant analog to attrib.

find . -type f -print | cygpath -w -f- | xargs attrib

Won't work with -print0, but you get the idea.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

