bug#6353: cp and mv with single wild card argument acts as if multiple arguments were entered.

2010-06-04 Thread Alfred M. Szmidt
If you execute cp /path/* the command expands the wildcard, and treats the last file as the destination directory. That is at it should be, * is expanded by the shell, not by the command.

Re: diff --git

2010-02-18 Thread Alfred M. Szmidt
$ diff --git diff: unrecognized option '--git' I think diff should say at this point real diff, at least up to year 2010, does not have a --git option, you are probably getting that idea from git output or something. That is what it says, though not in so many words. Having an

Re: echo -n?

2010-02-15 Thread Alfred M. Szmidt
/bin/echo -e \\x2Dn Alas, -e is not guaranteed by POSIX.

Re: echo -n?

2010-02-15 Thread Alfred M. Szmidt
A friend came up with this hack `echo -n\ '; note the space. Which is a bit of a cheat. And `echo -e --\\bn', which alas is not POSIXly.

echo -n?

2010-02-14 Thread Alfred M. Szmidt
Here is a fun one, how does one output `-n' (literal string) (or any other option that echo accepts) using echo? $ /bin/echo --version|head -n1 echo (GNU coreutils) 8.4 $ /bin/echo -- -n -- -n $ /bin/echo - -n - -n $ /bin/echo '-n' $ /bin/echo -n $

Re: echo -n?

2010-02-14 Thread Alfred M. Szmidt
Ah, Bob, you're really no fun! Neither printf, piping to sed or cat are fun solutions. :-) And no, I don't have an ace up my sleeve...

Re: expr exit status

2010-01-19 Thread Alfred M. Szmidt
What are all the exit statuses I need to check just after expr command? Is it only need to check 1 or 2 or 3 for fail condition and zero for success ?else pease specify You only need to check for non-zero exit codes for failure.

Re: Build a single source file under src/

2009-12-27 Thread Alfred M. Szmidt
The following might work: make -C src foo.o

Re: head that accepts gz files?

2009-12-02 Thread Alfred M. Szmidt
I'm wondering if there is a similar program to 'head' that accepts gz files. (just as zgrep to grep) You can use: zcat foo.gz | head

su.1, hostname.1, and arch.1 missing in tarball

2009-11-30 Thread Alfred M. Szmidt
Any program listed in --enable-no-install-program won't get its man pages generated during dist/distcheck, so currently to install those man pages on needs have perl installed to be able to run help2man. Not sure what the best way is to fix this, thoughts?

Re: Pinky command

2009-11-14 Thread Alfred M. Szmidt
Why the name of command was changed from finger to pinky? I liked new name, but there may be Some old scripts (copied from Unix to Linux) in which finger may have used. I suggested finger as a link to pinky. As far as I know pinky is not a replacement for finger but is instead

Re: Pinky command

2009-11-12 Thread Alfred M. Szmidt
The list of uids are already public in the /etc/passwd file. That file is already world readable. Therefore it isn't clear to me how using another command makes this a vulnerability. Using fingerd, this could disclose login names to remote attackers. This, of course, does not

Re: Tail +N apparent error.

2009-10-09 Thread Alfred M. Szmidt
tail +n is a obsolete syntax, and was deprecate in POSIX 1003.1-2001. From the coreutils manual: | Standards conformance | == | | In a few cases, the GNU utilities' default behavior is incompatible | with the POSIX standard. To suppress these incompatibilities, define |

Re: Problem with Hostname

2009-07-11 Thread Alfred M. Szmidt
This command that accepts the -f option is *not* the GNU hostname command. There is a small confusion, there are two versions of GNU hostname. One that supports -f (GNU Inetutils hostname), and one that doesn't (GNU Coreutils hostname). The one in coreutils is not installed by default.

Re: ls manpage incomplete

2009-07-10 Thread Alfred M. Szmidt
What's the justification for putting incomplete information in the manpages that's already available to another text tool on the same package? It is a compromise for users like yourself who expect things to be in man pages (the man pages we produce as really --help formated using troff;

Re: ls manpage incomplete

2009-07-10 Thread Alfred M. Szmidt
The standard for documentation has been man for longer than that... It should be complete. Maybe for some old UNIX systems, but this has never been the case for GNU. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: ls manpage incomplete

2009-07-10 Thread Alfred M. Szmidt
The standard for documentation has been man for longer than that... It should be complete. Maybe for some old UNIX systems, but this has never been the case for GNU. And many current ones. As for GNU, it isn't a complete system anyways... GNU became complete

Re: copyright years: mass-update every January 1

2009-06-25 Thread Alfred M. Szmidt
migration of coreutils works into the public domain I know of no such plan. I'm refering to the copyright term limits which apply to all works, not a specific plan for coreutils. It doesn't affect it at all, if you use a version of coreutils from 1980, then the copyright term

Re: improve INSTALL contents

2009-05-17 Thread Alfred M. Szmidt
Indeed - I want to be very clear in INSTALL that there are some basics that pretty much any client of this file provide (make, make install), and some options that nice packages provide but which may fail if someone borrowed this file but does follow everything checked by automake's

Re: improve INSTALL contents

2009-05-17 Thread Alfred M. Szmidt
In addition, if you use an unusual directory layout you can give options like @option{--bind...@var{dir}} to specify different values for particular kinds of files. Run @samp{configure --help} for a list of the directories you can set and what kinds of files go

Re: improve INSTALL contents

2009-05-17 Thread Alfred M. Szmidt
can you please also read, and follow http://lists.gnu.org/archive/html/autoconf/2009-05/msg00058.html? I'm sure you must have missed it because I failed to spam it to three mailing lists. But your repetitions are just as boring as those from everyone else. And get bug-coreutils

Re: improve INSTALL contents (was: Core-utils 7.2; building only 'su')

2009-05-14 Thread Alfred M. Szmidt
How about this? I took into account Ralf's comments as well. In addition, if you use an unusual directory layout you can give options like @option{--bind...@var{dir}} to specify different values for particular kinds of files. Run @samp{configure --help} for a list of the directories

Re: improve INSTALL contents (was: Core-utils 7.2; building only 'su')

2009-05-13 Thread Alfred M. Szmidt
+Depending on the package, the default directory layout chosen during +...@command{configure} can be altered during subsequent execution of +...@command{make}. A `make install FOO=VAL' should never alter anything in the build directory. The problem is if you pass --bindir=/foo to

Re: improve INSTALL contents

2009-05-13 Thread Alfred M. Szmidt
+Depending on the package, the default directory layout chosen during +...@command{configure} can be altered during subsequent execution of +...@command{make}. A `make install FOO=VAL' should never alter anything in the build directory. The problem is if you

Re: inetutils ChangeLog doc/Makefile.am doc/inetuti...

2009-05-08 Thread Alfred M. Szmidt
After the patch I installed to inetutils [1], I think actually the only problem is that the gnulib 'fdl' module is a moving target. That doesn't really work, as Karl explained, since the main manual needs to be updated manually whenever there is a FDL version update in gnulib.

Re: tail +n does not work under Linux?

2009-05-08 Thread Alfred M. Szmidt
I have just noticed that 'tail +n' does not seem to work under Linux. Please don't call the GNU system for Linux, Linux is a important part of the system, but it is not the name of it. Linux is the kernel of the GNU system, when people call the whole system for Linux they give none of the

Re: [bug-inetutils] Re: inetutils ChangeLog doc/Makefile.am doc/inetuti...

2009-05-07 Thread Alfred M. Szmidt
doc/fdl.texi is removed below If I'm understanding correctly, removing fdl.texi seems wrong to me. I'm supposing it's created dynamically from a copy in gnulib or somewhere now? But the license can't be updated merely by changing that file. The @copying block has to be

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Alfred M. Szmidt
I tend to agree that INSTALL should either mention DESTDIR (and probably also V, which now plays a role with new enough automake), or at least point to the GNU Coding Standards and the Automake manual overview of the GNU build system. Does anyone want to beat me to a patch?

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Alfred M. Szmidt
So for maximum portability you should support this in your package, too. BTW, why do you state that overriding just $prefix would be almost always wrong? In the w32 arena, overriding $prefix at `make install' time is unilaterally *correct*. Why can your staging area not mirror

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
However, I confirmed that sudo make install prefix=$PWD/inst did install su into $PWD/inst/bin. Eech, this is what DESTDIR is for... Works very well with coreutils. make install DESTDIR=$PWD/inst ___ Bug-coreutils mailing list

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
from the ./configure documentation it seems like --prefix=/foo would be preferred to destdir. Not at all! The correct method is to use DESTDIR, if you do: ./configure --prefix=$FOO --exec-prefix=$BAR and then do: make install prefix=$PWD/inst _ALL_ exec_prefix files (i.e. all arch.

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
Hmmm. Would it be worth changing autoconf to make './configure --help' state something like the following: | Some influential environment variables: | ... | DESTDIRleave unset during configure; allows installation to | specify a staging area different than

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
Hmmm. Would it be worth changing autoconf to make './configure --help' state something like the following: | Some influential environment variables: | ... | DESTDIRleave unset during configure; allows installation to | specify a

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
packages where DESTDIR doesn't work properly. But automake already does such a good job at providing DESTDIR support (especially if the user remembered to run 'make distcheck'), that I think it would be nice if using AM_INIT_AUTOMAKE did make the ./configure

Re: Mac OS10 bug

2009-04-13 Thread Alfred M. Szmidt
say I want to sort on column 3, numericaly, reversed order: sort -nu +2 -3 file files From the Coreutils documentation, (coreutils) sort invocation: |On older systems, `sort' supports an obsolete origin-zero syntax | `+POS1 [-POS2]' for specifying sort keys. This obsolete behavior

Re: su command...

2009-03-26 Thread Alfred M. Szmidt
Please, how can I execute the following idea: $ su gimp but really in bacground? I can not figure out what you want to do, but you might try=20 this : if [[ $(grep gimp /etc/passwd | cut -d':' -f1) == gimp ]]; then su - gimp; else su -; export DISPLAY=:0.0; gimp ; logout; fi;

Re: Add redirection to install for package managers

2009-02-12 Thread Alfred M. Szmidt
I hope so. I'll creating that package, including a script named install, and see if I don't need to patch GNU install. That'll work for many cases. (I plan to use the environment variable is REDIR_DESTDIR.) If it works EXCEPT that too many people invoke /usr/bin/install

Re: Feature request: gzip/bzip support for split

2009-01-30 Thread Alfred M. Szmidt
I would like to propose a feature that allows to gzip/bzip on its way out during the split and I am also including the patch for the same. I think a better approach would be to add a --on-output-hook=PROGRAM command, then one can call any arbitrary command when split outputs a file.

Re: better figure out a paperless copyright assignment method

2008-12-19 Thread Alfred M. Szmidt
Wait a second, when making a Wikipedia editing contribution we just click on a box below some licence statement. Why can't you guys use that method? Because you don't get nice stickers that way. ___ Bug-coreutils mailing list

Re: installing

2008-10-09 Thread Alfred M. Szmidt
I am unable to install iTunes 8 with Wine. Half way through the setup *the installer encountered errors before itunes could be configured *any help?? Try using amarok or rythmbox. They are much nicer than iTunes, and they are free software!

Re: getgid --help

2008-08-29 Thread Alfred M. Szmidt
getgid usage is invalid, mentions FILE while really it should be NAME: $ getgid --help Usage: getgid [OPTION]... [FILE]... Prints ID of given group name. --help display this help and exit --version output version information and exit Report bugs to

Re: making GNU ls -i (--inode) work around the linux readdir bug

2008-07-11 Thread Alfred M. Szmidt
EVERY application that invokes ls -i is effected. Please name one. magicmirror Which nobody uses. Try again; and this time a program that is in common use. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: Coreutils binary sizes over time

2008-01-27 Thread Alfred M. Szmidt
Dr. David Alan Gilbert wrote on 27-01-08 01:29: Hi, Out of a bit of boredom (and avoiding trying to fix a VHDL problem) I decided to graph the sizes of a few of the binaries from coreutils, as packaged by debian over time (I've included fileutils/shellutils).

Re: Coreutils binary sizes over time

2008-01-27 Thread Alfred M. Szmidt
What is the drop at 9 epoch? That one looks fun; I am guessing it is the move to glibc 2.x? Yes, it appears to be - the first one is linked against libc.so.5 and an earlier dynamic linker I don't have. This might put a different spin in the size increase, that it is glibc

Re: command ls bug

2007-12-31 Thread Alfred M. Szmidt
i still want to know whether the problem i say is a bug or not!! It isn't a bug. You are telling ln to create a symbolic link that points to itself. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: Command line parsing with genparse

2007-12-27 Thread Alfred M. Szmidt
FWIW, GNU tar uses argp for parsing arguments. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: Command line parsing with genparse

2007-12-19 Thread Alfred M. Szmidt
1. It does a significant part of the work at compile time. So the generated code can be quite simple and fast. It is parsing arguments, it doesn't need to be super fast. As for simplicity, having used argp for alot of things, I all I know is that getopt/getopt_long are a pain. 2. It

Re: Command line parsing with genparse

2007-12-19 Thread Alfred M. Szmidt
Debarshi Ray [EMAIL PROTECTED] converted a bunch of tools in inetutils (http://www.gnu.org/s/inetutils/, http://sv.gnu.org/p/inetutils/) to use argp instead of getopt/getopt_long. Some which have quite hairy parsing semantics, for example ping which uses children parsers, but

Re: DWIM feature request for cp

2007-08-15 Thread Alfred M. Szmidt
Hello, I want to ask the developers what do they think about implementing a way to do cp -r .* target (copy files and directories starting with dot) without copying the parent directory .. (I think that's what the user usually intends to do) Won't work, globs is expanded by the shell

Re: basename whitespace bug

2007-08-14 Thread Alfred M. Szmidt
when executed with file name containing spaces, basename returns only first part of file name (until space). Try quoting the string. [EMAIL PROTECTED]:~$ basename /home/ams/frob ni.cate frob ni.cate Space is treated as a seperator of arguments on GNU and Unixoid systems.

Re: [PATCH] arch: new program

2007-06-13 Thread Alfred M. Szmidt
Oh, and I'm overlooking these: groupsis in the shadow package too idis in the shadow package too On GNU systems, like GNU/Linux, it is only appropriate to install the GNU version of these programs by default. The problem with su is that it requires root access to be

Re: [PATCH] arch: new program

2007-06-06 Thread Alfred M. Szmidt
--- /dev/null +++ b/man/arch.x @@ -0,0 +1,6 @@ +[NAME] +uname \- print machine hardware name (same as uname -m) That should be `arch \- print machine ...'. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

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 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 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: info cp

2007-04-03 Thread Alfred M. Szmidt
On the linux man page for cp one is directed to info cp but this will not work because info cp describes the C/C++ preprocessor. This is a known issue with info, aggravated by the fact that man2info insists on listing the shorter link when generating the man page whether or

Re: kilo is k and not K

2007-02-27 Thread Alfred M. Szmidt
SI does not define what a kilo-byte is, computer scientists do, and they defined it as 1024. Being a CS, I like consistency, and I also happen to like kilo-byte == 1000 bytes. :-) ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: kilo is k and not K

2007-02-26 Thread Alfred M. Szmidt
when you do ls -l -h one sometimes encounters files which have kilo size. ls -l -h then uses K to display this. This is wrong and unallowable. It must be k. You don't have a choice: it is standarised by the SI system as k. See for example http://en.wikipedia.org/wiki/SI .

Re: enhancement bug for ls...

2007-02-22 Thread Alfred M. Szmidt
That's probably because you can do all these things with find(1). In any case it's very unlikely that any more single-letter options will be added to the coreutils ls because of the likelihood of some conflict with other ls implementations. Not to mention that all single-letter

Re: basename sucks

2007-02-02 Thread Alfred M. Szmidt
Regarding the original query, why not just use awk? Or just use basename with a little xargs added. This seems very readable and obvious to me. echo /home/me/foo | xargs -l basename foo And then zero terminated strings are already supported. printf /home/me/foo\0

Re: basename sucks

2007-02-01 Thread Alfred M. Szmidt
Hmm - making basename (and also dirname) a filter is compatible with POSIX: since POSIX requires a single argument, we can define operation with a missing argument however we want (or in other words, our current definition of issuing an error is not mandated). If we do that, then we

Re: basename sucks

2007-02-01 Thread Alfred M. Szmidt
All great ideas, but who is willing to code them? I think the OP seemed quite motivated for the task. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: basename sucks

2007-02-01 Thread Alfred M. Szmidt
Furthermore, with a --suffix option, we could also allow multiple command line arguments, another usage case that might prove useful: $ basename --suffix=.h foo.h bar.h It's always fun until somebody puts out an eye by having a file named --suffix=.h. Handle it the

Re: include dos2unix/unix2dos in coreutils ?

2006-12-21 Thread Alfred M. Szmidt
I'm somewhat positive about the idea, but this particular name has the problem that it's already used for other projects (or at least that is what searching for the name on the web would imply). What project is that? I'm quite fond of the name, maybe etcutils would be

Re: include dos2unix/unix2dos in coreutils ?

2006-12-21 Thread Alfred M. Szmidt
For example: http://www.google.com/search?hl=enq=miscutilsbtnI=I'm+Feeling+Luckymeta= Could you explain what that contains? I don't have access to a webbrowser. The first hit in google is Miscutils-1.0.0 in CPAN. There are 92,700 hits in google for miscutils I

Re: include dos2unix/unix2dos in coreutils ?

2006-12-20 Thread Alfred M. Szmidt
What about coreutils-extra? (Would that be acceptable to the coreutils folks?) These are not extra utilities for coreutils, so this name is not suitable. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: What is the opposite of 'printf'?

2006-12-18 Thread Alfred M. Szmidt
I should note that I'm still waiting for the someone to step up as miscutils maintainer, [EMAIL PROTECTED] never got back to me about it. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: shred command. Autodetect file type

2006-12-01 Thread Alfred M. Szmidt
if --remove (-u) is specified. The default is not to remove the files because it is common to operate on device files like /dev/hda, and those files usually should not be removed. When operating on regular files, most people use the --remove option. Why not use the stat system

Re: basename for directories containing space

2006-09-08 Thread Alfred M. Szmidt
[EMAIL PROTECTED] NZ PostSep06]$ echo `pwd` /home/corrin/NZ PostSep06 [EMAIL PROTECTED] NZ PostSep06]$ basename `pwd` NZ [EMAIL PROTECTED] NZ PostSep06]$ basename --version basename (GNU coreutils) 5.2.1 Written by FIXME unknown. Surely the correct output is NZ PostSep06?

Re: coreutils-6.0 on BeOS (9)

2006-08-23 Thread Alfred M. Szmidt
Btw, the #ifdef __GLIBC__ in m4/fsusage.m4 looks wrong also for the Hurd, because glibc/sysdeps/mach/hurd/statfs64.c does not appear to access /proc. /proc doesn't exist on GNU, never did. Cheers. ___ Bug-coreutils mailing list

Re: bug report

2006-08-23 Thread Alfred M. Szmidt
This is a bug in your GNU/Linux system, you should report it to the people who maintain it. The behaviour you see probobly happens because your shell initialision file doesn't do: eval `dircolors /etc/DIR_COLORS` or similar. Happy hacking. ___

Re: Getting a file_t from a file descriptor

2006-07-27 Thread Alfred M. Szmidt
While I'm not that proficient in these issues, Nor am i. But I am. /* Return the io server port for file descriptor FD. This adds a Mach user reference to the returned port. On error, sets `errno' and returns MACH_PORT_NULL. */ Thanks, that looks quite promising.

Re: tail claims tail +n is deprecated

2006-07-02 Thread Alfred M. Szmidt
Breaking backward compatibility is so bad -- I've been bitten many times by autoconf-generated scripts that many GNU packages use and insist on remaking locally (why?) and that could not work because my local autoconf was newer than the version used by the package author.

Re: tail claims tail +n is deprecated

2006-07-01 Thread Alfred M. Szmidt
There's a bug in recent tail: it claims tail +20 is deprecated and I should use tail -n +20. It isn't a bug, it is intended. (coreutils)Standards conformance: |Newer versions of POSIX are occasionally incompatible with older | versions. For example, older versions of POSIX required

Re: GNU coding standards clash with POSIX for ... | tail -f

2006-06-30 Thread Alfred M. Szmidt
(2) I don't think many people are relying on this behavior. (Why would you want to run tail -f on a pipe?) Agreed. That does seem freaky. I can't think of a useful case for it. I can't think of a specific or concrete case right now, but `tail -f' on a pipe could be used on

Re: expr -- problem with product functionality

2006-05-21 Thread Alfred M. Szmidt
GNU/Linux_box:/ # expr 10 / 2 5 GNU/Linux_box:/ # expr 10 * 2 expr: syntax error You need to escape the multiplication sign. Try: expr 10 \* 2 And try: echo expr 10 * 2 to see why it doesn't work (shell expansion) Cheers. ___

Re: (GNU/)Linux filereading

2006-05-09 Thread Alfred M. Szmidt
I am trying to open a file called -2.xml through VI editor/cat from command prompt. But unable to read the file as it is taking - as one option. I am getting the following error - cat: invalid option -- 2 Try: COMMAND ./-2.xml where COMMAND is vi/cat/... Cheers.

Re: Test Failed

2006-01-04 Thread Alfred M\. Szmidt
I compiled without problem coreutils 5.93, but when I executed make check there was one failed test. The failed test was close-stdout You haven't given any information about the system you compiled GNU coreutils 5.93 on, so it is hard to figure out what might have gone wrong. The

Re: point to info coreutils cmd instead of info cmd in manpage

2006-01-02 Thread Alfred M\. Szmidt
Ideally, info would be fixed to allow an exact-match, rather than the current, first-match approach. Or better yet, extending --show-options so you can pass a program to it. Say, info --show-options pr coreutils. ___ Bug-coreutils mailing list

Re: [ program

2006-01-02 Thread Alfred M\. Szmidt
I was wondering if that [ program is supposed to be there, or if it's a typo. If I run info [ I get the info page for test, so I wasn't certain if they were related. They are the same, [ is for systems that don't have [ builtin into the shell. Consider the following shell expresion:

Re: [ program

2006-01-02 Thread Alfred M\. Szmidt
Except that '[' is a built-in with most shells today. But for older shells it was an external command. I think it is important to note that GNU [ supports more fancy things than the default GNU bash builtin; or atleast, used too... ___

Re: env (GNU coreutils) 5.93 patch

2005-12-30 Thread Alfred M\. Szmidt
[The bug-sh-utils list is obsolete, use bug-coreutils instead] Would it be possible to make everything that goes to bug-{text,sh,files}-utils end up in bug-coreutils? Or maybe it already does... When using /usr/bin/env as the interpreter in a #! line, you must be sure that there is

Re: env (GNU coreutils) 5.93 patch

2005-12-30 Thread Alfred M\. Szmidt
Also, /usr/bin/env is a very non-standard place for env; it is usually located in /bin. On what systems is env located in /bin/env? The normal location is in /usr/bin/env. GNU for one. :-) ___ Bug-coreutils mailing list

Re: sort -b also ignores tabs

2005-12-28 Thread Alfred M\. Szmidt
sort -b not only ignores blanks, but also tabs. A tab is a blank. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: sort -b also ignores tabs

2005-12-28 Thread Alfred M\. Szmidt
Perhaps it would be more clear to say whitespace instead. Or are there types of whitespace other than 'spaces, tabs and newlines', which do not get ignored? I think the locale comes into play here too, so saying anything specific would be wrong. And what is the difference between

Re: sort -b also ignores tabs

2005-12-28 Thread Alfred M\. Szmidt
The former could be interpreted as a single blank, which could then map very easily onto a single space (since no other form of whitespace produces a single column's worth of change), but there is no such thing as a single whitespace in intuitive interpretation; whitespace is a

Re: how to list supplementary groups?

2005-12-28 Thread Alfred M\. Szmidt
So how can I find the supplementary groups of process 4321 using id or groups? It does't seem to be possible. You'd need to hack a bit for that to work. Something like I dunno: [EMAIL PROTECTED]:~$ id `ps -up 2551|tail -n1|awk '{print $1}'` uid=30270(ams) gid=134(update)

Re: [patch #3596] Sort directories before files in ls

2005-12-22 Thread Alfred M\. Szmidt
EVIL. You are calling qsort twice for every element (once to put directories first, then twice again on the subsets). This is twice as slow as just writing a proper sort function that does everything all in one comparison, so that you only call qsort once. I agree with

Re: [patch #3596] Sort directories before files in ls

2005-12-21 Thread Alfred M\. Szmidt
ok, I'll keep it in mind when I'll redo the patch. I'll keep only the --group-dirs option and remove -e. --sort-directories-first is I think a clearer name, --group-dirs says nothing about how the directories are group, if there are several groups, etc. If --sort-directories-first is to

Re: [patch #3596] Sort directories before files in ls

2005-12-21 Thread Alfred M\. Szmidt
So, you coreutils developers should just converge me on a suitable name and I'll use it in my patch (which in any case I don't pretend to be applied verbatim ;)). Can you send the patch to the list? I can take a quick peek at it and see if there are things that are missing that I'm

Re: coreutils-5.92:du not AIX largefile safe --

2005-11-09 Thread Alfred M\. Szmidt
Eek, sorry for putting my nose into this. But you just touched me in a sensetive spot! So I appologise in advance! :) --- coreutils-5.92/tests/du/2g.orig 2005-11-09 03:12:19.18192 -0500 +++ coreutils-5.92/tests/du/2g 2005-11-09 03:59:42.27477 -0500 @@ -14,7 +14,23 @@

Re: coreutils wishlist: nohup -p pid should let you background a running process, like Sun's nohup

2005-10-28 Thread Alfred M\. Szmidt
Maybe GNU/Hurd is fancy enough; I don't know. I don't know if it is possible _right_now_, but it shouldn't be hard to implement such a feature. That being said, it'd definitely be a nice feature to have, and if someone implements it cleanly I'd like to see it included in GNU nohup.

Re: install -d should bomb out if any args are regular files

2005-10-20 Thread Alfred M\. Szmidt
This should bomb out right away, $ install -d /var/lib/dpkg/status /tmp/var/lib/dpkg/status install: `/var/lib/dpkg/status' exists but is not a directory instead of still creating /tmp/var/lib/dpkg/status. Why? No idea, but one could add a option that makes install exit on

Re: sleep

2005-10-20 Thread Alfred M\. Szmidt
sleep (GNU sh-utils) 2.0 You should upgrade, the current version is 5.2.1, you can grab a tarball of coreutils (union of {sh,text,file}-utils) from your local GNU mirror. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org

Re: [PATCH] fix infinite loop eating all the memory

2005-10-07 Thread Alfred M\. Szmidt
`tail -f /dev/zero` eats all the available memory and swap until tail gets killed by the OOM killer (on linux, at least). Since /dev/zero is of infinite size, tail does the right thing in reading it until all memory/swap is exhausted. ,[ (standards)Semantics ] | 4.1 Writing Robust

Re: su - strange behaviour on Solaris 9

2005-10-07 Thread Alfred M\. Szmidt
The GNU su is host specific enough that there has been discussion of removing it from coreutils and moving it into a hostutils package. FYI, there is a GNU project called sysutils exactly for this type of stuff. And the mind boogles why GNU su must run on non-GNU platforms, why not

Re: [PATCH] fix infinite loop eating all the memory

2005-10-07 Thread Alfred M\. Szmidt
At which point would the arbitrary limit become acceptable? Never. 10MB of data seems big enough to avoid hitting the case on any normal file, for example. 8 char. long user seemed big enough, 2 char. years seemd big enough, argument lists of 1024 chars seemd long enough, etc etc.

Re: ls

2005-10-05 Thread Alfred M\. Szmidt
The command in question might be run anywhere (the documentation talks about scripts). That would include /tmp. `rm *' might also be run from anywhere, hence why don't get it. Sorry for being dense... ___ Bug-coreutils mailing list

Re: ls

2005-10-05 Thread Alfred M\. Szmidt
I think the point that was trying to be made is the following - if the user does $ cd /tmp $ rm * then they know exactly why files are being removed. But if they do Not if * gets expanded to `-rf /home/ams'. $ cd /tmp $ eval `dircolors` then they don't expect any side

Re: ls

2005-10-05 Thread Alfred M\. Szmidt
I had expected that omitting this command would make coloration disappear, but this is not the case. Why is that? ... alias ls='ls --color=auto' Thats why, ls has defaults for colors. ___ Bug-coreutils mailing

  1   2   3   >