Re: [PATCH] sort: Add --threads option, which parallelizes internal sort.

2009-06-12 Thread Ralf Wildenhues
* Jim Meyering wrote on Thu, May 28, 2009 at 09:33:21PM CEST: Glen Lenker wrote: On Thu, Mar 26, 2009 at 09:50:08PM +, Ralf Wildenhues wrote: Example run, on an 8-way, and with cat'ed instances of the dictionary, on tmpfs, timings best of three: Hey Ralf, did you happen to specify

Re: bug in sort -n -k1.4,1.2

2009-06-12 Thread Pádraig Brady
Cliff Miller wrote: hi, i have a bug to report in coreutils-7.4. the problem occurs with empty fields under -n/-g, specifically in sub-field specifications where end start. according to the docs, If the start position in a sort field specifier falls after the end of the line or after

su command failing on RHEL5

2009-06-12 Thread Sanjay Kumar
Hi, su command is failing with below error on RHEL5. We are using coreutils-5.97-14.el5 [r...@omvm6 ~]# su --version su (GNU coreutils) 5.97 [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address strace is showing below: . . fstat(3,

Re: su command failing on RHEL5

2009-06-12 Thread Bob Proulx
Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address ... strace is showing below: open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address) The su command appears to be working properly. The problem shown above is that your

Re: su command failing on RHEL5

2009-06-12 Thread Andreas Schwab
Bob Proulx b...@proulx.com writes: Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address ... strace is showing below: open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address) The su command appears to be working properly.

Re: su command failing on RHEL5

2009-06-12 Thread Ondřej Vašík
Hello, Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address) 1) su command is not failing 2) cat is working as expected su -c creates new process in RHEL-5 - which is

sort --key-debug

2009-06-12 Thread Pádraig Brady
I find it quite difficult to determine correct key positions to use, especially given the complicated rules for (global) -b options etc. I wonder would it be useful to add a --key-debug option, which would mark in the output the keys used. For multibyte locales you could use: ⌜key1⌟ blah blah⌜

RE: su command failing on RHEL5

2009-06-12 Thread Sanjay Kumar
That I have already checked. [r...@omvm6 ~]# ls -ld /dev/tty crw-rw-rw- 1 root tty 5, 0 Jun 13 00:32 /dev/tty [r...@omvm6 ~]# I have written, that after copying su executable from RHEL4 on RHEL5, it is working. There must be some issue with coreutils-5.97. Thanks Regards, Sanjay Kumar Sr.

wc

2009-06-12 Thread Iram CHELLI
Hello, i am using wc in shell scripts the exact command is: wc FILE | cut -d -f 2 it usually works but sometimes wc outputs the result in a different formatting, that is, I have to do a cut -d -f 3 to get the wc. This is not very convenient that the wc program shall not return

Re: wc

2009-06-12 Thread Bob Proulx
Iram CHELLI wrote: wc FILE | cut -d -f 2 it usually works but sometimes wc outputs the result in a different formatting, that is, I have to do a cut -d -f 3 to get the wc. The output format for the wc on different systems will produce a differing number of leading spaces. Counting

Re: wc

2009-06-12 Thread Pádraig Brady
Pádraig Brady wrote: You probably want to squeeze adjacent blanks: wc FILE | tr -s '[:blank:]' ' ' | cut -d' ' -f2 Note you might wonder why cut doesn't support -d'[:blank:]' to auto skip runs of horizontal whitespace. Details here:

Re: wc

2009-06-12 Thread Giuseppe Scrivano
Hello, if you need a specific wc output field, the words count in this case, you can use the command `wc -w FILE'. Is it what you want? Regards, Giuseppe Iram CHELLI iram.che...@loria.fr writes: Hello, i am using wc in shell scripts the exact command is: wc FILE | cut -d -f 2

nohup causes clisp startup to sigsegv

2009-06-12 Thread Karl Berry
Running nohup from coreutils 7.4, GNU clisp crashes on startup: nohup /home/karl/src/clisp/clisp-build/clisp -q -norc -c ../../../../../utils/xindy/rte/ordrules/ordrulei.lsp -o ordrulei.fas nohup: ignoring input and appending output to `nohup.out' Segmentation fault The output from

Re: sort --key-debug

2009-06-12 Thread James Youngman
Sounds like a great idea to me. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: sort --key-debug

2009-06-12 Thread Jim Meyering
Pádraig Brady wrote: I find it quite difficult to determine correct key positions to use, especially given the complicated rules for (global) -b options etc. I wonder would it be useful to add a --key-debug option, which would mark in the output the keys used. For multibyte locales you

[PATCH] Rebasing on Padraig's gnulib fallocate module and cleaning up

2009-06-12 Thread Matěj Cepl
Hi, the craziness around F11 finished so I am using a little bit of time I have to make one more round of my truncate/fallocate patch (together with mkfile script). I wanted to make my patch working with the Pádraig's fallocate gnulib module and clean up tests (they should all pass now). I am

[PATCH] Rebasing on Padraig's gnulib fallocate module and cleaning up

2009-06-12 Thread Matěj Cepl
* src/truncate.c: fixing parameters of fallocate call to fit the gnulib module. New option is called --allocate (nobody is interested in the implementation of the option). Doesn't use posix_fallocate but fallocate directly (relying on gnulib). * src/mkfile.in: script version of mkfile from

Re: [PATCH] Rebasing on Padraig's gnulib fallocate module and cleaning up

2009-06-12 Thread Pádraig Brady
Matěj Cepl wrote: Hi, the craziness around F11 finished so I am using a little bit of time I have to make one more round of my truncate/fallocate patch (together with mkfile script). I wanted to make my patch working with the Pádraig's fallocate gnulib module and clean up tests (they

Re: bug in sort -n -k1.4,1.2

2009-06-12 Thread Pádraig Brady
Cliff Miller wrote: the non-trivial case here is when -b is present in the form sort -k2.1b,2.3 where the start and end positions could be in either order depending on the number of blanks that start field 2. Right, good point. I've added a test for that case also and pushed the

Re: [PATCH] stdbuf work in progress

2009-06-12 Thread Pádraig Brady
Pádraig Brady wrote: Jim Meyering wrote: I tried to build on Fedora 10 x86_64 and got this: /usr/bin/ld: ../lib/libcoreutils.a(quote.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ../lib/libcoreutils.a: could not read

Re: nohup causes clisp startup to sigsegv

2009-06-12 Thread Paul Eggert
k...@freefriends.org (Karl Berry) writes: Running nohup from coreutils 7.4, GNU clisp crashes on startup: nohup /home/karl/src/clisp/clisp-build/clisp -q -norc -c ../../../../../utils/xindy/rte/ordrules/ordrulei.lsp -o ordrulei.fas nohup: ignoring input and appending output to

Re: wc

2009-06-12 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Pádraig Brady on 6/12/2009 8:00 AM: Note also that wc can output particular counts in isolation. I.E. this will get the same affect as your original: wc -w FILE | cut -d' ' -f1 Even better: wc -w FILE - -- Don't work too hard,

Re: wc

2009-06-12 Thread iram chelli
Pádraig Brady a écrit : Iram CHELLI wrote: Hello, i am using wc in shell scripts the exact command is: wc FILE | cut -d -f 2 You probably want to squeeze adjacent blanks: wc FILE | tr -s '[:blank:]' ' ' | cut -d' ' -f2 cheers, Pádraig. Thank you this is great. Cheers, Iram.

Re: wc

2009-06-12 Thread iram chelli
Bob Proulx a écrit : Iram CHELLI wrote: wc FILE | cut -d -f 2 it usually works but sometimes wc outputs the result in a different formatting, that is, I have to do a cut -d -f 3 to get the wc. The output format for the wc on different systems will produce a differing number of

Re: wc

2009-06-12 Thread iram chelli
Pádraig Brady a écrit : Pádraig Brady wrote: You probably want to squeeze adjacent blanks: wc FILE | tr -s '[:blank:]' ' ' | cut -d' ' -f2 Note you might wonder why cut doesn't support -d'[:blank:]' to auto skip runs of horizontal whitespace. Details here:

Re: bug in sort -n -k1.4,1.2

2009-06-12 Thread Cliff Miller
Cliff Miller wrote: hi, i have a bug to report in coreutils-7.4. the problem occurs with empty fields under -n/-g, specifically in sub-field specifications wher= e end start. according to the docs, If the start position in a sort field specifier falls after the end of the line