cp --parents requires path as destination, can it be made to take filename?

2008-11-30 Thread Aaron Peterson
Hi, I just spent a few hours learning how to find files and got a cp command up that looked like it should work.. I ran into a problem that was very tough to find the solution to though, cp: with --parents, the destination must be a directory Try `cp --help' for more information. I have since f

Re: Possible bug with grep/sed/tail?

2008-11-30 Thread Pádraig Brady
Jim Meyering wrote: > Brian Dessent <[EMAIL PROTECTED]> wrote: >> Jim Meyering wrote: >>> local setvbuf='__attribute__ ((constructor)) void >>> f () { setvbuf (stdout, NULL, _IOLBF, 0); }' >>> echo "$setvbuf" | gcc -s -include stdio.h -x c - -fPIC -shared \ >>> -o "$

Re: dd: reblock failure -- sporadic failures

2008-11-30 Thread Jim Meyering
Bob Proulx <[EMAIL PROTECTED]> wrote: > This seems very strange. Periodically I have seen the dd reblock test > fail. It isn't a hard failure and that seems like a critical clue to > me. But it also seems quite strange. > > http://buildbot.proulx.com:9000/i686-gnu-linux-full/builds/990/step-te

[PATCH] remove explicit declaration of putenv, ...

2008-11-30 Thread Jim Meyering
FYI, I've just pushed this and the dd/reblock fix: >From 57e2022b8d4fa6a2fbb420447705701535e58b0d Mon Sep 17 00:00:00 2001 From: Jim Meyering <[EMAIL PROTECTED]> Date: Wed, 12 Nov 2008 11:02:50 +0100 Subject: [PATCH] remove explicit declaration of putenv, ... * src/date.c: ... now that gnulib gua

FYI: 5 small changes

2008-11-30 Thread Jim Meyering
These are test-related, except the last one, which is to avoid a warning. >From b5b3690d069b0bd4a1d561a8c1b527768d067b5d Mon Sep 17 00:00:00 2001 From: Jim Meyering <[EMAIL PROTECTED]> Date: Mon, 24 Nov 2008 10:03:25 +0100 Subject: [PATCH 1/5] tests: avoid failure of cp/link-heap on some systems

Re: dd: reblock failure -- sporadic failures

2008-11-30 Thread Pádraig Brady
Jim Meyering wrote: > diff --git a/tests/dd/reblock b/tests/dd/reblock > index 542529a..ef9e036 100755 > --- a/tests/dd/reblock > +++ b/tests/dd/reblock > @@ -44,7 +44,10 @@ sed 's/,.*//' err > k && mv k err > compare err exp-reblock || fail=1 > > # Demonstrate that bs=N supersedes even followin

Re: dd: reblock failure -- sporadic failures

2008-11-30 Thread Jim Meyering
Pádraig Brady <[EMAIL PROTECTED]> wrote: > Jim Meyering wrote: >> diff --git a/tests/dd/reblock b/tests/dd/reblock >> index 542529a..ef9e036 100755 >> --- a/tests/dd/reblock >> +++ b/tests/dd/reblock >> @@ -44,7 +44,10 @@ sed 's/,.*//' err > k && mv k err >> compare err exp-reblock || fail=1 >> >>

[bug #24974] Document that comm's option "-1", "-2" and "-3" can be combined

2008-11-30 Thread anonymous
URL: Summary: Document that comm's option "-1","-2" and "-3" can be combined Project: GNU Core Utilities Submitted by: None Submitted on: Sun 30 Nov 2008 22:11:59 UTC Category: None

Re: [bug #24974] Document that comm's option "-1", "-2" and "-3" can be combined

2008-11-30 Thread Pádraig Brady
anonymous wrote: > URL: > > > Hello, > > Could you explicitly document that "-1", "-2" and "-3" options > of "comm" can be combined. > This isn't obvious, and may lead some people [me!] to use > other tools instead. It's common for options to be combined u

du --files-from feature request

2008-11-30 Thread Aaron Peterson
Hi, A feature request for du, a way to sum from a list of files without doing tr \n \0 I had to sort some files and and needed to know how large the group of files that I had found were. I spend many hours trying to figure this out / and searching for solution. It turns out that the \0 delimit

Re: du --files-from feature request

2008-11-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Aaron Peterson on 11/30/2008 5:16 PM: > Hi, > A feature request for du, a way to sum from a list of files without > doing tr \n \0 Thanks for the report. You didn't mention which version of du you are using. du has supported the optio

Re: du --files-from feature request

2008-11-30 Thread Brian Dessent
Aaron Peterson wrote: > I spend many hours trying to figure this out / and searching for solution. > It turns out that the \0 delimited list requirement was very painful. > I wish I could cat the output of find into du and get the total It's meant to be used like: $ find . -type f -print0 | du

[bug #24949] coreutils pwd not implementing latest POSIX features

2008-11-30 Thread Paul D. Smith
Follow-up Comment #2, bug #24949 (project coreutils): The problem is that without -P I can't invoke pwd from things like Perl portably. If I use "my $pwd = `pwd`;" and it runs a shell and uses the shell builtin version of pwd, then I get the wrong thing (I explicitly want the "real" path; what P

Re: du --files-from feature request

2008-11-30 Thread Pádraig Brady
Aaron Peterson wrote: > Hi, > A feature request for du, a way to sum from a list of files without > doing tr \n \0 Supporting --files-from would be less general. Is `tr '\n' '\0'` that onerous? > I had to sort some files and and needed to know how large the group of > files that I had found we