Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Alfred M. Szmidt
Current stable version of coreutils (6.9) has 8(!) utilities which somehow compute or/and check a message digest. They are: 'md5sum', 'sha1sum', 'sha224sum', 'sha256sum', 'sha384sum', 'sha512sum' and finally 'sum' and 'cksum'. It's already a little bit confusing and it seems

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread xandrous
Oh, definitely 'confusing' was a wrong word. It's all about style... Let me explain that in different way. Let's imagine I knew nothing about 'coreutils' and I was looking for something that can sort text files. I'd just try to type 'sort --help' or more likely 'man sort'. It's logical and it

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alfred M. Szmidt on 4/9/2007 5:13 AM: I don't see any major problem why something like `hashsum ALGORITHM' wouldn't work though, `md5sum' could be the same as `hashsum md5'. And then md5sum could be a shell script, or just a simple

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Andreas Schwab
[EMAIL PROTECTED] writes: One more comparison. Why do we have the only one 'mknod' utility and why don't we have separate 'bmknod' (for block devices) and 'cmknod' (for character devices)? mknod is just a wrapper around the syscall, which does both. Do you fill the difference now?! The

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Alfred M. Szmidt
I don't see any major problem why something like `hashsum ALGORITHM' wouldn't work though, `md5sum' could be the same as `hashsum md5'. And then md5sum could be a shell script, or just a simple program that calls `hashsum md5'. Except that since the *sum utilities operate on

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alfred M. Szmidt on 4/9/2007 6:17 AM: I don't see any major problem why something like `hashsum ALGORITHM' wouldn't work though, `md5sum' could be the same as `hashsum md5'. And then md5sum could be a shell script, or just

error in compile - coreutils

2007-04-09 Thread Ken Simpson
All 1 tests passed == Making check in install make check-TESTS PASS: trap ./basic-1: /sw/src/fink.build/coreutils-5.96-5/coreutils-5.96/tests/install: not writable by user `nobody' ./basic-1: skipping this test SKIP: basic-1 PASS: create-leading PASS: d-slashdot

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Alfred M. Szmidt
Why not just: hashsum ALGORITHM [FILE]? A optional hashing algorithm seems pointless for this. Because on decoding, 'hashsum -c FILE' could be made smart enough to auto-detect the algorithm based on the length of the hash, but only if the algorithm is optional (--md5) rather than

Re: [bug #19546] mkdir -p should use default ACL for parent directories

2007-04-09 Thread Paul Eggert
Matt McCutchen [EMAIL PROTECTED] writes: I would like mkdir -p to observe the default ACL in preference to the umask (as nearly all other programs do) when creating parent directories. Sorry, but POSIX requires that mkdir -p FOO/BAR must create FOO as if by the following command: mkdir -m

Re: Don't you think there are too many *sum utilities?

2007-04-09 Thread Elias Pipping
On Apr 9, 2007, at 2:28 PM, Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alfred M. Szmidt on 4/9/2007 6:17 AM: I don't see any major problem why something like `hashsum ALGORITHM' wouldn't work though, `md5sum' could be the same as `hashsum md5'. And then

ls: don't form or compute the length of strings that won't be used

2007-04-09 Thread Jim Meyering
FYI, this fixes a small nit whereby ls (e.g., without -l) would unnecessarily form and compute the length of strings like those for owner, group, block count, etc. ls: don't form or compute the length of strings that won't be used. * src/ls.c (gobble_file): Form and compute length

Re: cp/mv/dd to handle SIGXFSZ?

2007-04-09 Thread Philip Rowlands
On Mon, 9 Apr 2007, Micah Cowan wrote: In the Ubuntu bugtracker, Malone, we've been getting several submissions of an issue, usually phrased along the lines of cp dumps core on copy of 4GB file to vfat (or usb), etc. See https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/75574 If

Re: cp/mv/dd to handle SIGXFSZ?

2007-04-09 Thread Micah Cowan
Philip Rowlands wrote: On Mon, 9 Apr 2007, Micah Cowan wrote: In the Ubuntu bugtracker, Malone, we've been getting several submissions of an issue, usually phrased along the lines of cp dumps core on copy of 4GB file to vfat (or usb), etc. See

Re: cp/mv/dd to handle SIGXFSZ?

2007-04-09 Thread Philip Rowlands
On Mon, 9 Apr 2007, Micah Cowan wrote: Users report having this problem when they copy to (e.g.) vfat systems, but not ext3, so it seems to be FS-related. Even if it did turn out to be usage limit, I would think the problem would be the same: it's much more useful (IMO) to issue a diagnostic

Re: cp/mv/dd to handle SIGXFSZ?

2007-04-09 Thread Jim Meyering
Micah Cowan [EMAIL PROTECTED] wrote: In the Ubuntu bugtracker, Malone, we've been getting several submissions of an issue, usually phrased along the lines of cp dumps core on copy of 4GB file to vfat (or usb), etc. See https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/75574 I'd like

Re: cp/mv/dd to handle SIGXFSZ?

2007-04-09 Thread Micah Cowan
Philip Rowlands wrote: On Mon, 9 Apr 2007, Micah Cowan wrote: Users report having this problem when they copy to (e.g.) vfat systems, but not ext3, so it seems to be FS-related. Even if it did turn out to be usage limit, I would think the problem would be the same: it's much more useful