Re: bug in yesno()?

2006-02-20 Thread Paul Eggert
Eric Blake [EMAIL PROTECTED] writes: Should yesno() be setting the properties of stdin to be unbuffered for the duration of the getline(), so that the rest of stdin is not consumed too early? That would make the code less portable/reliable, I think, and would slow things down. POSIX does not

du and --exclude --exclude-from

2006-02-20 Thread Biniam Bekele
du (coreutils) 5.2.1 # du /home/reind --exclude=/home/reind # du /home/reind -X exclude.txt with exclude.txt: /home/reind Both of the above do not work as they should. They do not exclude the above directories. Sincerely, [EMAIL PROTECTED]

Re: rm issue

2006-02-20 Thread Jim Meyering
Eric Blake [EMAIL PROTECTED] wrote: According to Jim Meyering on 2/17/2006 9:14 AM: No. Those who want `short' can use -I. Although --ask-once does sound nice, I want to keep things minimal, in case we end up providing similar functionality for other commands, where adding a long-named

Re: rm issue

2006-02-20 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 2/20/2006 6:06 AM: ChangeLog: 2006-02-18 Eric Blake [EMAIL PROTECTED] * TODO (rm): Implement rm -I. * NEWS: Document it, along with change to rm --interactive. Thanks. Applied. I missed one spot of

Re: du and --exclude --exclude-from

2006-02-20 Thread Eric Blake
du (coreutils) 5.2.1 The latest stable version of coreutils is 5.94 - consider upgrading: http://lists.gnu.org/archive/html/bug-coreutils/2006-02/msg00078.html # du /home/reind --exclude=/home/reind # du /home/reind -X exclude.txt with exclude.txt: /home/reind Both of the above do

Re: Bug#351601: coreutils: minor formatting issue in the mv an cp manpages

2006-02-20 Thread Jim Meyering
Eric Blake [EMAIL PROTECTED] wrote: According to Jim Meyering on 2/18/2006 12:44 AM: Nicolas François [EMAIL PROTECTED] wrote: ... I've found some other similar issues in install.c, join.c, pr.c, and uniq.c I'm attaching a patch for Makefile.maint Thanks again! I switched it to use grep's

Re: rm issue

2006-02-20 Thread Jim Meyering
Eric Blake [EMAIL PROTECTED] wrote: I missed one spot of documentation, and introduced a typo. Please apply this followon patch: ChangeLog: 2006-02-20 Eric Blake [EMAIL PROTECTED] * man/rm.x: Update documentation to match previous patch. doc/ChangeLog: 2006-02-20 Eric Blake

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Eric Blake
Hi, I want to compare a variable holding *string* with the *regular expression *. Is it possible to do in unix with a single command? Can we use test command in UNIX to compare a *string *with the *regular expression*? if so please provide an example for that. This sort of question

Re: sort on multicolumn files

2006-02-20 Thread Philip Rowlands
On Thu, 16 Feb 2006, P Kensche wrote: I use 4.5.3 from coreutils 5.93 and have a problem with sort. This is a common issue, due to certain locale settings which influence sorting behaviour. Please see:

sort on multicolumn files

2006-02-20 Thread P Kensche
Hello, I use 4.5.3 from coreutils 5.93 and have a problem with sort. File a: a-1 1 a 0 is sorted by sort -k 1 a to a 0 a-1 1 In contrast file b: a a B a-1 b G is sorted by sort -k 1 b to a-1 b G a a

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Andreas Schwab
N Gandhi Raja [EMAIL PROTECTED] writes: I want to compare a variable holding *string* with the *regular expression *. Is it possible to do in unix with a single command? Yes, with expr. $ info coreutils 'String expressions' Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Mike Frysinger
On Friday 17 February 2006 05:23, N Gandhi Raja wrote: I want to compare a variable holding *string* with the *regular expression *. Is it possible to do in unix with a single command? Can we use test command in UNIX to compare a *string *with the *regular expression*? if so please provide an

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Paul Eggert
N Gandhi Raja [EMAIL PROTECTED] writes: Can we use test command in UNIX to compare a *string *with the *regular expression*? No. You might look at 'expr' or 'awk' instead. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: sort on multicolumn files

2006-02-20 Thread Paul Eggert
P Kensche [EMAIL PROTECTED] writes: is sorted by sort -k 1 a In general, that's not correct since it sorts by fields 1 through N, whereas 'join' sorts only by field 1. You need to use sort -k 1b,1 instead. So, as far as I can tell, you haven't found a bug. However, `-k 1b,1' isn't