Bug in date?

2008-09-09 Thread Enrique Arizón Benito
|If I try to exec: # ||date -s "1970-01-01 01:00:00" but ||# ||date -s "1970-01-01 00:00:01" doesn't work. In general any hour value amongst 01-23 works. 00 fails! ||Is that the expected behaviour? More info: #date --version date (GNU coretutils) 6.10-6 #echo $LC_ALL C #echo

Re: Bug in date?

2008-09-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Enrique Arizón Benito on 9/9/2008 4:45 AM: > ||# ||date -s "1970-01-01 00:00:01" > > doesn't work. Thanks for the report. In which way does it not work? What error message, if any, is printed? What did you expect to happen, when compa

Re: Bug in date?

2008-09-09 Thread Enrique Arizón Benito
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Enrique Arizón Benito on 9/9/2008 4:45 AM: ||# ||date -s "1970-01-01 00:00:01" doesn't work. Thanks for the report. In which way does it not work? What error message, if any, is printed? What did you expe

[PATCH] fix minor shell issues in test suite

2008-09-09 Thread Ralf Wildenhues
* tests/misc/help-version: Fix bad quoting. * tests/cp/same-file: Fix unportable shell quoting. * tests/mv/part-symlink: Likewise. --- Hello Jim, the "`..."..."...`" in part-symlink is unportable (see Autoconf manual). I figured let's adjust same-file likewise so if you add inner "..." bits it do

[PATCH] simplify installation rules, using new Automake

2008-09-09 Thread Ralf Wildenhues
This relies on development Automake to provide multi-file installation, and avoids relying on undocumented Automake interfaces. It also removes special-casing for `['. * configure.ac (AM_INIT_AUTOMAKE): Depend on 1.10a. (CROSS_COMPILING): New Automake conditional. * src/Makefile.am (install-exec-a

Re: [PATCH] fix minor shell issues in test suite

2008-09-09 Thread Jim Meyering
Hi Ralph! Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > the "`..."..."...`" in part-symlink is unportable (see Autoconf manual). Ooh! I didn't know I had any of those left. Of course. Multi-line ones. > I figured let's adjust same-file likewise so if you add inner "..." bits > it doesn't happen

Re: [PATCH] simplify installation rules, using new Automake

2008-09-09 Thread Jim Meyering
Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > This relies on development Automake to provide multi-file > installation, and avoids relying on undocumented Automake > interfaces. It also removes special-casing for `['. > * configure.ac (AM_INIT_AUTOMAKE): Depend on 1.10a. > (CROSS_COMPILING): New Au

Re: Bug in date?

2008-09-09 Thread James Youngman
On Tue, Sep 9, 2008 at 1:47 PM, Enrique Arizón Benito <[EMAIL PROTECTED]> wrote: > Upps, I forgot it. > > #date -s "1970-01-01 00:00:01" > date: cannot set date: Invalid argument It looks like date is simply reporting an error that it received from the operating system. The strace utility (or

Re: [PATCH] simplify installation rules, using new Automake

2008-09-09 Thread Ralf Wildenhues
* Jim Meyering wrote on Tue, Sep 09, 2008 at 08:14:38PM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > > > I wasn't sure why you needed the special-casing for '['. > > Which shell has problems with it? The commit which adds the > > Hmm... I think the need to special case "[" dates back >

Re: uniq works not correct

2008-09-09 Thread ws-imp
Thanks for your answer. In my first mail is attach a file "test". To arrive at the conclusion, I`ve the same file by sort twice used. there's no way around this type the following command: sort test test | uniq -u |wc -l The reslut should to be equal "0" sort test test | uniq -d |wc -l The