litte understanding problem with test

2007-05-18 Thread Alexander Kahl
Hi, I built automake and ran the testsuite and one test failed (instsh2.test). So I tracked down the error to the execution of 'test ! -w file'. I thought it would check that I don't have write permission to this file. I tried: echo foofile chmod 444 file test ! -w file echo no write

Re: litte understanding problem with test

2007-05-18 Thread Jim Meyering
Alexander Kahl [EMAIL PROTECTED] wrote: echo foofile chmod 444 file test ! -w file echo no write permission no output was given back. It should indeed write no write permission. However, the test program you're using there is probably the built-in one from your shell, and not the one from

Re: Error from coreutils CVS version

2007-05-18 Thread Jim Meyering
Alexander Kahl [EMAIL PROTECTED] wrote: gcc -std=gnu99 -I. -march=pentium4 -O2 -pipe -fomit-frame-pointer -s -fgnu89-inline -c utimecmp.c In file included from utimecmp.c:33: utimens.h:2: error: conflicting types for 'futimens' /tools/include/sys/stat.h:370: error: previous declaration

Re: Glibc-2.6 (was Re: Error from coreutils CVS version)

2007-05-18 Thread James Youngman
On 5/18/07, Greg Schafer [EMAIL PROTECTED] wrote: Alexander Kahl wrote: gcc -std=gnu99 -I. -march=pentium4 -O2 -pipe -fomit-frame-pointer -s -fgnu89-inline -c utimecmp.c In file included from utimecmp.c:33: utimens.h:2: error: conflicting types for 'futimens'

Re: command cp

2007-05-18 Thread Bob Proulx
gri grigri wrote: I have no bug, but an missing feature: cp -p ... ... like mkdir -p ... for the case, that I want to copy a file in a yet not existing directory. Try using rsync. It will create the directory. rsync somefile somedir/ It will create somedir and place somefile within it.

Re: litte understanding problem with test

2007-05-18 Thread Jim Meyering
[EMAIL PROTECTED] wrote: Thanks for your fast answer :) I tried it as user and it works, seems to be a root issue [EMAIL PROTECTED]:/tmp$ echo foofile chmod 444 file test ! -w file echo no write permission no write permission [EMAIL PROTECTED]:/tmp# echo foofile chmod 444 file test !

Re: litte understanding problem with test

2007-05-18 Thread alexander . kahl
Thanks for your fast answer :) I tried it as user and it works, seems to be a root issue [EMAIL PROTECTED]:/tmp$ echo foofile chmod 444 file test ! -w file echo no write permission no write permission [EMAIL PROTECTED]:/tmp# echo foofile chmod 444 file test ! -w file echo no write

Re: litte understanding problem with test

2007-05-18 Thread Bob Proulx
[EMAIL PROTECTED] wrote: Thanks for your fast answer :) I tried it as user and it works, seems to be a root issue root, as in the superuser? The user that has write permission for all files on the system? [EMAIL PROTECTED]:/tmp$ echo foofile chmod 444 file test ! -w file echo no write

Re: sort and LC_COLLATE: suggestions for improvement (with patch)

2007-05-18 Thread Philip Rowlands
On Fri, 18 May 2007, Jean-Pierre Vial wrote: When one wants to sort a file in which letters are just codes, not meaningfull words, the sort order obtained through LC_COLLATE is very often inadequate. The help suggest to set LC_ALL=C, but this is often inadequate as well in complcated shell