Re: extend rm docs (was: slight 'rm --help' confusion)

2005-04-08 Thread Steven Schubiger
On 7 Apr, G. Vamsee Krishna wrote: : Would be nice though if it says that `rm' does the same thing to : directories too. I still remember using `rmdir' on an empty directory : about 2 years ago when I started using GNU/Linux. Could we have some more opiniated input on this issue by others? If

bug, i think? pwd --help and pwd --version don't work

2005-04-08 Thread r3b3l
logo Comunicação urgente - Comunicação confidencial Hi! I would like to know if this i encountered is really a bug or i'm i just doing something wrong? i'm kind off a newbie with linux, so sory if i ask some silly question or if i am just doing it all wrong. I am running mandrake linux 10.1 and

Re: bug, i think? pwd --help and pwd --version don't work

2005-04-08 Thread Philip Rowlands
On Thu, 7 Apr 2005, r3b3l wrote: Hi! I would like to know if this i encountered is really a bug or i'm i just doing something wrong? i'm kind off a newbie with linux, so sory if i ask some silly question or if i am just doing it all wrong. I am running mandrake linux 10.1 and the pwd --version

Re: dd hangs with SIGINT

2005-04-08 Thread Guillaume Chazarain
Jim Meyering wrote: In that case, I think we're just lucky that those malloc calls seem to work. We'll need a more robust solution. Right, I managed to hang dd with the following modifications: - anticipatory gettext initialization (my patch) - no gettext - no fprintf (not even evaluating its

Re: dd hangs with SIGINT

2005-04-08 Thread Bruno Haible
Jim Meyering wrote: Thanks for the patch, but that `cure' seems worse than the disease. I agree. The real good way to make this work on POSIX systems (without assuming multithreading) is to use fork(). - Let the parent process fork a child process, block the signals SIGHUP, SIGQUIT,

Re: dd hangs with SIGINT

2005-04-08 Thread Guillaume Chazarain
Bruno Haible wrote: I agree. The real good way to make this work on POSIX systems (without assuming multithreading) is to use fork(). - Let the parent process fork a child process, block the signals SIGHUP, SIGQUIT, SIGPIPE in the parent, and watch the child's exit status. If the exit

Re: slight 'rm --help' confusion

2005-04-08 Thread James Youngman
On Thu, Apr 07, 2005 at 08:45:58PM +0100, Philip Rowlands wrote: rmdir can still be useful as a less-dangerous alternative to rm -r; rmdir * will only wipe empty directories, although I was overjoyed when I found this worked: $ find dirname -depth -type d -empty -exec rmdir -v -- '{}' ';'

Re: dd hangs with SIGINT

2005-04-08 Thread Andreas Schwab
Bruno Haible [EMAIL PROTECTED] writes: - Let the parent process fork a child process, block the signals SIGHUP, SIGQUIT, SIGPIPE in the parent, and watch the child's exit status. If the exit status of the child is 128 + SIGHUP/SIGQUIT/SIGPIPE, print the statistics. This 128 +

Re: dd hangs with SIGINT

2005-04-08 Thread James Youngman
On Fri, Apr 08, 2005 at 01:34:41PM +0200, Bruno Haible wrote: Jim Meyering wrote: Thanks for the patch, but that `cure' seems worse than the disease. I agree. The real good way to make this work on POSIX systems (without assuming multithreading) is to use fork(). - Let the parent

Re: Collating order

2005-04-08 Thread Bob Proulx
Ole Laursen wrote: [EMAIL PROTECTED] (Bob Proulx) writes: You can control the sorting order in ls and sort through the use of the LANG, LC_COLLATE and LC_ALL variables. If you don't want internationalization then you can unset all of those or set the appropriate ones to C. All of unset

Re: extend rm docs (was: slight 'rm --help' confusion)

2005-04-08 Thread G. Vamsee Krishna
On Thu, 7 Apr 2005, Steven Schubiger wrote: On 7 Apr, G. Vamsee Krishna wrote: : Would be nice though if it says that `rm' does the same thing to : directories too. I still remember using `rmdir' on an empty directory : about 2 years ago when I started using GNU/Linux. Could we have

Re: bug, i think? pwd --help and pwd --version don't work

2005-04-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Philip Rowlands on 4/8/2005 2:14 AM: built-in pwd implementations can be confusing as they will in some circumstances return a different directory to /bin/pwd, if you have cd'd through a symlink. e.g. $ mkdir a ln -s a b $ cd b $

Re: bug, i think? pwd --help and pwd --version don't work

2005-04-08 Thread James Youngman
On Fri, Apr 08, 2005 at 12:18:05PM +0530, G. Vamsee Krishna wrote: [EMAIL PROTECTED] ~]$ /usr/local/bin/pwd --help Usage: /usr/local/bin/pwd [OPTION] Print the full filename of the current working directory. --help display this help and exit --version output version