Re: BUG rm -rdf */*/src

2008-04-11 Thread Eugen.Konkov

On my unix FreeBSD 6.3
mkdir -p /11/src /234/src /adsv/src
rm -rf /*/src
Deletes all src sub directories for in  directory

On WinXP SP2:
C:\>c:\progra~1\gnuwin32\bin\mkdir -p /11/src /234/src /adsv/src

C:\>c:\progra~1\gnuwin32\bin\rm -rf /*/src
c:\progra~1\gnuwin32\bin\rm: rm: can not run lstat for `/*/src': Invalid 
argument



Last week I have downloaded latest GetGnuWin32 and have downloaded all new 
unilities

http://sourceforge.net/projects/getgnuwin32
I do not know which version of coreutils I have. and where I can update them 
if I have old...



- Original Message - 
From: "Eric Blake" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, April 10, 2008 4:06 PM
Subject: Re: BUG rm -rdf */*/src



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 4/10/2008 6:28 AM:
| rm -rdf */*/src

rm -d is deprecated.  It does nothing, and you should not need to use it.
~ Newer coreutils don't even document it; the NEWS for 6.0 states:

~  rm's --directory (-d) option is scheduled for removal in 2006.  This
~  option has been silently ignored since coreutils 5.0.  On systems
~  that support unlinking of directories, you can use the "unlink"
~  command to unlink a directory.

(Hmm, now that it's 2008, maybe it's time to make 'rm -d' issue a failure,
rather than being silently ignored.)

| does not remove directories like this:
| a/b/src
| a/c/src
| b/d/src

It works just fine for me:

$ mkdir -p a/b/src a/c/src b/d/src
$ echo ?/?/src
a/b/src a/c/src b/d/src
$ rm -rf ?/?/src
$ echo ?/?/src
?/?/src

|
| but on unix, win32/cygwin rm works OK

That sentence didn't make sense.  What version of coreutils are you
complaining about, and on what platform?  Maybe it is time for you to do
an upgrade; the latest stable version is 6.10, with 6.11 due out soon.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf+EMAACgkQ84KuGfSFAYCTNgCg0dgNf81DcIHMThIzgkZWEhPo
06kAn032Bj9PybzzdRdK5wS1Fnw8TIXC
=vhtJ
-END PGP SIGNATURE- 




___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: BUG rm -rdf */*/src

2008-04-11 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 4/11/2008 1:51 AM:
| C:\>c:\progra~1\gnuwin32\bin\rm -rf /*/src
| c:\progra~1\gnuwin32\bin\rm: rm: can not run lstat for `/*/src':
| Invalid argument
|
| Last week I have downloaded latest GetGnuWin32 and have downloaded all
| new unilities
| http://sourceforge.net/projects/getgnuwin32

gnuwin32 is an old, and notoriously broken, port.

| I do not know which version of coreutils I have.

What does rm --version say?

| and where I can update
| them if I have old...

I would suggest using cygwin instead (see cygwin.com), which has no
problems with this example, and which is actively maintained to the
current stable release of 6.10.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf/UkcACgkQ84KuGfSFAYB1awCgsjqO8VUFGGh6PH6FxmP7JnbM
xK0AoMchj5ukDsRJq4Jom8dvg/eXj76P
=Nypp
-END PGP SIGNATURE-


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


[PATCH] Add new program: zargs

2008-04-11 Thread Bo Borgerson
Hi,

This is a much trimmed-back version of the program I previously
submitted as `magic'.

Thanks to Bob Proulx for the feedback.

The zargs program automatically decompresses inputs to a program.

$ zargs wc input/*
177 9766908 /tmp/zargsE0oy5L/TODO.bz2
177 9766908 /tmp/zargsE0oy5L/TODO.gz
177 9766908 input/TODO.txt
5312928   20724 total

Thanks,

Bo
From 42e176d01982f038f12859880c530d3a49a5f4ac Mon Sep 17 00:00:00 2001
From: Bo Borgerson <[EMAIL PROTECTED]>
Date: Sun, 6 Apr 2008 17:54:08 -0400
Subject: [PATCH] Add new program: zargs

* AUTHORS: Register as the author.
* NEWS: Advertise new program.
* README: List new program.
* doc/coreutils.texi: Describe new program.
* man/Makefile.am: Add new program.
* man/zargs.x: Add new man page template.
* po/POTFILES.in: Add new program.
* src/Makefile.am: Add new program.
* src/zargs.c: Add new program.
* tests/misc/Makefile.am: Add new test.
* tests/misc/help-version: Accomodate new program.
* tests/misc/zargs: Test new program.

Signed-off-by: Bo Borgerson <[EMAIL PROTECTED]>
---
 AUTHORS |1 +
 NEWS|3 +
 README  |1 +
 doc/coreutils.texi  |   74 -
 man/Makefile.am |1 +
 man/zargs.x |4 +
 po/POTFILES.in  |1 +
 src/Makefile.am |2 +-
 src/zargs.c |  910 +++
 tests/misc/Makefile.am  |3 +-
 tests/misc/help-version |1 +
 tests/misc/zargs|   82 +
 12 files changed, 1079 insertions(+), 4 deletions(-)
 create mode 100644 man/zargs.x
 create mode 100644 src/zargs.c
 create mode 100755 tests/misc/zargs

diff --git a/AUTHORS b/AUTHORS
index 807857f..5c1c6d1 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -100,3 +100,4 @@ wc: Paul Rubin, David MacKenzie
 who: Joseph Arceneaux, David MacKenzie, Michael Stone
 whoami: Richard Mlynarik
 yes: David MacKenzie
+zargs: Bo Borgerson
diff --git a/NEWS b/NEWS
index e208b30..69f548f 100644
--- a/NEWS
+++ b/NEWS
@@ -82,6 +82,9 @@ GNU coreutils NEWS-*- outline -*-
   Fix a non-portable use of sed in configure.ac.
   [bug introduced in coreutils-6.9.92]
 
+** New programs
+
+zargs: run a program with automatically decompressed inputs
 
 * Noteworthy changes in release 6.9.92 (2008-01-12) [beta]
 
diff --git a/README b/README
index 7a608f4..4092411 100644
--- a/README
+++ b/README
@@ -15,6 +15,7 @@ The programs that can be built with this package are:
   runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf
   sleep sort split stat stty su sum sync tac tail tee test touch tr true
   tsort tty uname unexpand uniq unlink uptime users vdir wc who whoami yes
+  zargs
 
 See the file NEWS for a list of major changes in the current release.
 
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 5a6f2c3..348ec30 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -126,6 +126,7 @@
 * who: (coreutils)who invocation.   Print who is logged in.
 * whoami: (coreutils)whoami invocation. Print effective user ID.
 * yes: (coreutils)yes invocation.   Print a string indefinitely.
+* zargs: (coreutils)zargs invocation.   Run with decompressed inputs.
 @end direntry
 
 @copying
@@ -190,7 +191,7 @@ Free Documentation License''.
 * Working context::pwd stty printenv tty
 * User information::   id logname whoami groups users who
 * System context:: date uname hostname hostid
-* Modified command invocation::chroot env nice nohup su
+* Modified command invocation::chroot env nice nohup su zargs
 * Process control::kill
 * Delaying::   sleep
 * Numeric operations:: factor seq
@@ -421,6 +422,7 @@ Modified command invocation
 * nice invocation::  Run a command with modified niceness
 * nohup invocation:: Run a command immune to hangups
 * su invocation::Run a command with substitute user and group ID
+* zargs invocation:: Run a command with decompressed inputs
 
 Process control
 
@@ -680,7 +682,8 @@ meanings with the values @samp{0} and @samp{1}.
 Here are some of the exceptions:
 @command{chroot}, @command{env}, @command{expr},
 @command{nice}, @command{nohup}, @command{printenv},
[EMAIL PROTECTED], @command{su}, @command{test}, @command{tty}.
[EMAIL PROTECTED], @command{su}, @command{test}, @command{tty},
[EMAIL PROTECTED]
 
 
 @node Backup options
@@ -13358,6 +13361,7 @@ user, etc.
 * nice invocation:: Modify niceness.
 * nohup invocation::Immunize to hangups.
 * su invocation::   Modify user and group ID.
+* zargs invocation::Pipe compressed inputs through decompressors.
 @end menu
 
 
@@ -13509,6 +13513,72 @@ Exit status:
 the exit status of @var{command} otherwise
 @end display
 
[EMAIL PROTECTED

Re: BUG rm -rdf */*/src

2008-04-11 Thread Eugen.Konkov

I would suggest using cygwin instead (see cygwin.com),

We are, but it conflicts with Postgres
I do not know how, but PG do not recomed it to install on the same machine 
because of unstability =(

So we are looking for alternatives...

- Original Message - 
From: "Eric Blake" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, April 11, 2008 2:57 PM
Subject: Re: BUG rm -rdf */*/src



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 4/11/2008 1:51 AM:
| C:\>c:\progra~1\gnuwin32\bin\rm -rf /*/src
| c:\progra~1\gnuwin32\bin\rm: rm: can not run lstat for `/*/src':
| Invalid argument
|
| Last week I have downloaded latest GetGnuWin32 and have downloaded all
| new unilities
| http://sourceforge.net/projects/getgnuwin32

gnuwin32 is an old, and notoriously broken, port.

| I do not know which version of coreutils I have.

What does rm --version say?

| and where I can update
| them if I have old...

I would suggest using cygwin instead (see cygwin.com), which has no
problems with this example, and which is actively maintained to the
current stable release of 6.10.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf/UkcACgkQ84KuGfSFAYB1awCgsjqO8VUFGGh6PH6FxmP7JnbM
xK0AoMchj5ukDsRJq4Jom8dvg/eXj76P
=Nypp
-END PGP SIGNATURE- 




___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: BUG rm -rdf */*/src

2008-04-11 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 4/11/2008 10:33 AM:
|> I would suggest using cygwin instead (see cygwin.com),
| We are, but it conflicts with Postgres
| I do not know how, but PG do not recomed it to install on the same
| machine because of unstability =(

Doesn't cygwin also come with an SQL server solution, pre-compiled, which
works with the cygwin port of coreutils?  But at this point, you are
better off asking about this on the cygwin list; it appears your questions
are no longer about an actual upstream coreutils problem, but a question
of the best Windows port to use, and the windows-specific mailing lists
are a better resource.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf/t4sACgkQ84KuGfSFAYDzwACfX7DiOqcNpM9SyajP6oWF3xGt
0h4An18AFIUUbiWYbX9/OS/Wf7H8RPSt
=fIYp
-END PGP SIGNATURE-


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils