From: Barry Margolin on
In article <fviv00$4ag$1(a)reader2.panix.com>,
dkcombs(a)panix.com (David Combs) wrote:

> In article <90201576-dcfd-4b59-8457-dd48e8be2cc5(a)24g2000hsh.googlegroups.com>,
> Florian Kaufmann <sensorflo(a)gmail.com> wrote:
> >For me touch also works with directories. I have bash on cygwin
> >
> >$ ls -ld test
> >drwxrwxrwx+ 2 18035 mkgroup-l-d 0 Apr 4 12:40 test
> >$ touch -d yesterday test
> >$ ls -ld test
> >drwxrwxrwx+ 2 18035 mkgroup-l-d 0 Apr 3 12:40 test
> >$ $0 --version
> >GNU bash, version 3.2.33(18)-release (i686-pc-cygwin)
> >Copyright (C) 2007 Free Software Foundation, Inc.
> >
> >
>
> Whose touch is that? gnu's?
>
> And what's this "yesterday" thing?

It's probably not the touch command that checks, but the utime() system
call, so it's the OS and/or filesystem implementation that matters.

--
Barry Margolin, barmar(a)alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
 | 
Pages: 1
Prev: Column mapping
Next: run cron manually