Re: Question about fold

2022-08-15 Thread Bob Proulx
Pádraig Brady wrote: > Moritz Poldrack wrote: > > Pádraig Brady wrote: > > > Both fold and fmt have overlapping functionality. > > > fold is more lower level, using less context, > > > and is operating as expected in this case. > > > > Thank you for your help. That's exactly what I wanted :) There

Re: date command is great but could use improvements

2022-05-24 Thread Bob Proulx
David Chmelik wrote: > I noticed two types for weeks in year: 1 to 53, 0 to 53, numbering > 54 weeks, but there can't be 54, right? > Only two options exist to number weekdays, when should be > more/user-configurable. The %Y and %U or %W options work in combination. Use %U for

bug#54586: dd conv options doc

2022-04-04 Thread Bob Proulx
Karl Berry wrote: > 'fdatasync' > Synchronize output data just before finishing. This forces a > physical write of output data. > > 'fsync' > Synchronize output data and metadata just before finishing. > This forces a physical write of output data

Re: thoughts on NO_COLOR

2022-04-03 Thread Bob Proulx
Pádraig Brady wrote: > I just noticed some de facto treatment of the NO_COLOR env var. > https://no-color.org/ I happened to run across this site myself a few weeks ago. When I saw it I had this immediate feeling of community. Here was someone else who also felt the oppression of endless

Re: df command reports incorrect usage

2022-03-22 Thread Bob Proulx
Fariya F wrote: > Yes it is an embedded system. The package we have used is coreutils 8.25 > and not 1.35. Very sorry for the confusion. Ah! No worries. :-) Then I will ask if my assumption about /dev/mmcblk2 being an SD card is incorrect? Is it actually soldered on flash NAND? In which case

Re: df command reports incorrect usage

2022-03-22 Thread Bob Proulx
Rob Landley wrote: > Fariya F wrote: > > The version of df command is 1.85. A current version of Coreutils df by most distros would be 8.x and the upstream stable version is version 9. This leads me to believe that the df you are using is not from Coreutils but from somewhere else. But not

Re: df command reports incorrect usage

2022-03-21 Thread Bob Proulx
Fariya F wrote: > My eMMC device has a partition which reports the below output from df -h > command: > > Filesystem Size Used Avail Use% Mounted on > /dev/mmcblk2p316Z 16Z 84M 100% /data Since the df command is simply reporting back on what the Linux kernel reports, and the kernel

bug#53631: coreutils id(1) incorrect behavior

2022-01-29 Thread Bob Proulx
Vladimir D. Seleznev wrote: > Expected behavior is: > # id user1 > uid=1027(user1) gid=1027(user1) groups=1027(user1) > # id user2 > uid=1027(user1) gid=1027(user1) groups=1027(user1),1028(somegroup) I just tried a test on both FreeBSD and NetBSD and both FreeBSD and

bug#53033: date has multiple "first saturday"s?

2022-01-10 Thread Bob Proulx
Darryl Okahata wrote: > Bob Proulx wrote: > Inconsistencies like this are why I wish it had never been implemented. > Best to avoid the syntax completely. > > Thanks. I'll avoid date and use either python or ruby to get this info. To be clear what I meant was tha

bug#53145: "cut" can't segment Chinese characters correctly?

2022-01-09 Thread Bob Proulx
zendas wrote: > Hello, I need to get Chinese characters from the string. I googled a > lot of documents, it seems that the -c parameter of cut should be > able to meet my needs, but I even directly execute the instructions > on the web page, and the result is different from the > demonstration. I

bug#53033: date has multiple "first saturday"s?

2022-01-07 Thread Bob Proulx
Darryl Okahata via GNU coreutils Bug Reports wrote: > From coreutils 9.0 (note the difference between the "second" and "third" > saturdays): ... > $ src/date --debug -d "second saturday" > date: parsed relative part: +1 seconds Caution! The date utility can't parse second due to second being a

bug#52481: chown of coreutils may delete the suid of file

2021-12-17 Thread Bob Proulx
21625039 wrote: > [root@fedora ~]# ll test.txt > -rwsr-x---. 1 root root 0 Dec 13 21:13 test.txt > > [root@fedora ~]# chown root:root test.txt > [root@fedora ~]# ll test.txt > -rwxr-x---. 1 root root 0 Dec 13 21:13 test.txt That is a feature of the Linux kernel, OpenBSD kernel, and NetBSD

bug#52206: Bug: rm -rf /*/*

2021-11-30 Thread Bob Proulx
Bob Proulx wrote: > Paul Eggert wrote: > > Robert Swinford wrote: > > > BTW, zsh globbing doesn’t exhibit this behavior! It seems it is only a > > > problem in bash. > > > > In that case, the bug (whatever it is) wouldn't be a coreutils bug. > > I

bug#52115: Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

2021-11-30 Thread Bob Proulx
Paul Eggert wrote: > Bob Proulx wrote: > > mv calls it SOURCE and DEST. cp calls it SOURCE and DEST. Perhaps ln > > should also call it SOURCE and DEST too for consistency? > > That's what ln did long ago, but that wording was deemed too confusing. > Here's where we cha

bug#52115: Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

2021-11-30 Thread Bob Proulx
Andreas Schwab wrote: > Bob Proulx wrote: > > The more I think about it the more I think it should say CONTENT > > rather than either TARGET or SOURCE. Because it is actually setting > > the content of the symbolic link. > > A hard link doesn't have content. But we

bug#52206: Bug: rm -rf /*/*

2021-11-30 Thread Bob Proulx
Paul Eggert wrote: > Robert Swinford wrote: > > This seems like a bug: > > https://twitter.com/nixcraft/status/1465599844299411458 > > I don't see a coreutils bug there: rm operated as specified. Agreed. It's not an rm bug. It's definitely unfortunate. It's similarly unfortunate to riding a

bug#52115: Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

2021-11-29 Thread Bob Proulx
Bob Proulx wrote: > With symbolic links the symlink contains a string. The string could > be pretty much anything. The more I think about it the more I think it should say CONTENT rather than either TARGET or SOURCE. Because it is actually setting the content of the symbolic link. The

bug#52176: Problem with email list tags

2021-11-29 Thread Bob Proulx
Ulf Zibis wrote: > Currently we have: > List-Post: GNU coreutils Bug Reports > > When using "reply list" to answer to a comment of bug 12345 in a email client > such as Thunderbird, my reply is sent to bug-coreutils@gnu.org, but it should > be sent to 12...@debbugs.gnu.org > > So I think, we

bug#52115: Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

2021-11-29 Thread Bob Proulx
Chris Elvidge wrote: > Paul Eggert wrote: > > Ulf Zibis wrote: > > > I think, for beginners it would be less confusing, if the most > > > simple form would be the first. > > > > Unfortunately the simple form "ln TARGET" is quite rarely used, so > > putting it first is likely to confuse beginners

bug#52115: Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

2021-11-28 Thread Bob Proulx
Warren Parad wrote: > except mv(1) and cp(1) are both "FROM" and then "TO", but ln is backwards > from thi, it is "TO" then "FROM", the least the command could do is put > these in the correct order. But that is not correct. The order for ln is the same as for cp and mv in that the target

bug#51345: dd with conv=fsync sometimes returns when its writes are still cached

2021-10-25 Thread Bob Proulx
Sworddragon wrote: > On Knoppix 9.1 with the Linux Kernel 5.10.10-64 x86_64 and GNU Coreutils > 8.32 I wanted to overwrite my USB Thumb Drive a few times with random data > via "dd if=/dev/random of=/dev/sdb bs=1M conv=fsync". While it usually > takes ~2+ minutes to perform this action dd returned

Re: feature request: echo --

2021-10-21 Thread Bob Proulx
Florent Flament wrote: > Bob Proulx writes: > >> In which case, thoroughly documenting the edge cases of the 'echo' > >> command and inviting programmers to use 'printf' instead on its > >> manpage (I know 'printf' is mentioned on the coreutils info page, >

Re: feature request: echo --

2021-10-19 Thread Bob Proulx
Florent Flament wrote: > Bob Proulx wrote: > However, I believe that the use of "shall not" makes the POSIX echo > definition ambiguous: > > The echo utility shall not recognize the "--" argument in the > manner specified by Guideline 10 of XBD Utili

Re: Selecting multiple delimiters in sort

2021-10-19 Thread Bob Proulx
tolugboji via GNU coreutils General Discussion wrote: > If "sort" did support multiple delimiters, I could numerically sort the > following set of filenames > using the second field. > > schimmel-04.png > schimmel-05.png > schimmel-06.png > schimmel-07.png > schimmel-08.png > schimmel-09.png >

Re: feature request: echo --

2021-10-19 Thread Bob Proulx
Florent Flament wrote: > Out of curiosity, would it possible to have the `echo` command output > the string "-n" ? > > ``` > $ POSIXLY_CORRECT=1 /bin/echo -n > ``` But the standards do actually mention -n. The behavior you see with POSIXLY_CORRECT=1 is conforming behavior.

bug#47476: relative date of -1 month shows the wrong month

2021-04-04 Thread Bob Proulx
Lars Nooden wrote: > On March 29, 2021, if a relative date of '-1 month' is passed to 'date', > then the output shows March instead of February. The date manual includes this section on relative months. The fuzz in units can cause problems with relative items. For example,

Re: differece between mkfifo and mknod ... p

2021-03-24 Thread Bob Proulx
Peng Yu wrote: > By discouraging people from using it for a long period (say 10 years), > its support can be dropped eventually which will reduce future > maintenance costs of this duplicate code. Removing it would needlessly break old scripts. It used to be the only way to create named pipes.

bug#47353: Numbered backups also need kept-new-versions else will grow out of control

2021-03-24 Thread Bob Proulx
tag 47353 + notabug close 47353 thanks Dan Jacobson wrote: > Or (info "(coreutils) Backup options") should "admit" that "Numbered > backups need to be trimmed occasionally by the user, lest the fill up > the disk." If the user has asked for them then any decision of the disposition of them is up

Re: Support for CSV file format on sort

2021-03-24 Thread Bob Proulx
✓ Paul Courbis de Bridiers de Villemor wrote: > Actually I’d prefer to have reliable tools to convert csv to tsv and tsv to > csv, replacing tabs and newlines by \t \n and to be able to use all > standard tools I would find this approach the better direction, more desirable, and more flexible

Re: differece between mkfifo and mknod ... p

2021-03-24 Thread Bob Proulx
Peng Yu wrote: > It seems that both `mkfifo` and `mknod ... p` can create a fifo. What > is the difference between them? Thanks. The mknod utility existed "for a decade" in Unix (don't quote me on that vague time statement) before mkfifo existed. The mknod utility existed in Unix v7 as a thin

bug#45358: bootstrap fails due to a certificate mismatch

2021-03-09 Thread Bob Proulx
Erik Auerswald wrote: > Grigoriy Sokolik wrote: > > I've rechecked: > > I cannot reproduce the problem, the certificate is trusted by my system: > > # via IPv4 > $ gnutls-cli --verbose translationproject.org 'Connecting|Status' > Connecting to '80.69.83.146:443'... > - Status:

bug#45358: bootstrap fails due to a certificate mismatch

2021-03-08 Thread Bob Proulx
Is this problem still a problem? Perhaps it has been fixed in the time this has been under discussion? Because it looks okay to me. Grigoriy Sokolik wrote: >$ curl -v https://translationproject.org/latest/coreutils/ -o /dev/null ... >* Connected to translationproject.org (80.69.83.146)

bug#45182: mktemp not created other permissions

2021-03-08 Thread Bob Proulx
close 45182 tag 45182 + notabug thanks Vasanth M.Vasanth wrote: > When I create a temp file from root users using mktemp command, then it is > not able to access other users. If the same do in other users then the > group and user came respectively. I see no difference in behavior of GNU

bug#45695: Date does not work for dates before 1970

2021-01-12 Thread Bob Proulx
zed991 wrote: > On linux, I can use date +%s --date "31 Dec 1969" > The result is -9 > A negative number Which is correct for dates before the 0 time: Thu, 01 Jan 1970 00:00:00 + https://en.wikipedia.org/wiki/Unix_time > But when I try it on Windows (using GNUWin32) it gives

bug#43828: invalid date converting from UTC, near DST

2020-10-28 Thread Bob Proulx
Martin Fido wrote: > I have tzdata version 2020a: > > $ apt-cache policy tzdata > tzdata: > Installed: 2020a-0ubuntu0.16.04 > Candidate: 2020a-0ubuntu0.16.04 > ... > > $ zdump -v Australia/Sydney | grep 2020 > Australia/Sydney Sat Apr 4 15:59:59 2020 UT = Sun

bug#43828: invalid date converting from UTC, near DST

2020-10-15 Thread Bob Proulx
Martin Fido wrote: > I seem to have found a bug in the date utility, converting from UTC > to Sydney time. It returns invalid date for what should be perfectly > valid: > > $ TZ='Australia/Sydney' date -d '2020-10-04T02:00:00Z' > date: invalid date ‘2020-10-04T02:00:00Z’ > > $

bug#43657: rm does not delete files

2020-10-15 Thread Bob Proulx
close 43657 thanks Paul Eggert wrote: > On 9/27/20 8:58 PM, Amit Rao wrote: > > There's a limit? My first attempt didn't use a wildcard; i attempted to > > delete a directory. > > 'rm dir' fails because 'rm' by default leaves directories alone. > > > My second attempt was rm -rf dir/* > > If

bug#43162: chgrp clears setgid even when group is not changed

2020-09-20 Thread Bob Proulx
Paul Eggert wrote: > Karl Berry wrote: > > I was on centos7. > > > > (I don't observe your problem on my Fedora 31 box, for example). > > > > Maybe there is hope for a future centos, then. Just another few data points... I was able to recreate this issue on a CentOS 7 system running in a

bug#43541: minor bug in GNU coreutils 8.30: pwd --version doesn't work

2020-09-20 Thread Bob Proulx
tag 43541 + notabug close 43541 thanks Nikolay wrote: > GNU coreutils 8.30 Coreutils version 8.30. Gotcha. > $ pwd --version > bash: pwd: --: invalid option > pwd: usage: pwd [-LP] But that is not the GNU Coreutils pwd program. That is the shell builtin pwd. In this case it is bash. And

bug#42440: bug with rm

2020-07-22 Thread Bob Proulx
tags 42440 + notabug thanks wrote: > sometimes,rm can't delete the file. > but when using rm -rf + file . > the file can be deleted. This does not sound like a bug in the rm command. Therefore I am tagging this as such. If you have follow up information and this turns out to be an actual

Re: Enhancement Request for sha256sum - output only the SHA-256 hash alone

2020-07-17 Thread Bob Proulx
Pádraig Brady wrote: > jens wrote: > > It would make shell scripts that use sha256sum much simpler. Currently it > > is necessary to split the output of sha256sum to obtain the hash, which > > usually requires an additional command / Unix process. > > This is one of those trade-offs. > I'd be

Re: mv w/mkdir -p of destination

2020-07-17 Thread Bob Proulx
Vito Caputo wrote: > Does this already exist? > > Was just moving a .tgz into a deep path and realized I hadn't created > it on that host, and lamented not knowing what convenient flag I could > toss on the end of the typed command to make `mv` do the mkdir -p > first for me. I suggest using the

bug#42034: option to truncate at end or should that be default?

2020-06-24 Thread Bob Proulx
L A Walsh wrote: > I allocated a large file of contiguous space (~3.6T), the size of a disk > image I was going to copy into it with 'dd'. I have the disk image > 'overwrite' the existing file, in place ... It's possible that you might want to be rescuing data from a failing disk or doing other

bug#41792: Acknowledgement (dd function – message: "No boot sector on USB device"")

2020-06-24 Thread Bob Proulx
close 41792 thanks Since the discussion has moved away from anything GNU Coreutils related and doesn't seem to be reporting any bugs in any of the utilities I am going to close the bug ticket. But discussion may continue here regardless. If we see a dd bug we can re-open the ticket. Ricky Tigg

bug#41657: md5sum: odd escaping for input filename \

2020-06-24 Thread Bob Proulx
close 41657 thanks No one else has commented therefore I am closing the bug ticket. But the discussion may continue here. Michael Coleman wrote: > Thanks very much for your prompt reply. Certainly, if this is > documented behavior, it's not a bug. I would have never thought to > check the

bug#41657: md5sum: odd escaping for input filename \

2020-06-01 Thread Bob Proulx
Hello Michael, Michael Coleman wrote: > $ true > \\ > $ md5sum \\ > \d41d8cd98f00b204e9800998ecf8427e \\ > $ md5sum < \\ > d41d8cd98f00b204e9800998ecf8427e - Thank you for the extremely good example! It's excellent. > The checksum is not what I would expect, due to the leading > backslash.

bug#37702: Suggestion for 'df' utility

2020-06-01 Thread Bob Proulx
Paul Eggert wrote: > So I'd prefer having 'df' just do the "right" thing by default, and > to have an option to override that. The "right" thing should be to > ignore all these pseudofilesystems that hardly anybody cares about. +1! Which I thought I would say because often I am a status quo type

Re: [PATCH 1/2] echo: pacify Oracle Studio 12.6

2020-06-01 Thread Bob Proulx
Paul Eggert wrote: > * src/echo.c (main): Don’t assign pointer to bool. > This is well-defined in C99, but is arguably bad style > and Oracle Studio 12.6 complains. ... > + bool posixly_correct = !!getenv ("POSIXLY_CORRECT"); Of course this is fine. But because char *getenv() returns a pointer

Re: Extend uniq to support unsorted list based on hashtable

2020-06-01 Thread Bob Proulx
Yair Lenga wrote: > For the first point, I would note that most coreutils goes well beyond > POSIX. Consider "cp", which has many useful additions beyond the POSIX > features. Most of those additions were due to file systems with new features and therefore cp needed to be able to deal with those

bug#41554: chmod allows removing x bit on chmod without a force flag, which can be inconvenient to recover from

2020-05-29 Thread Bob Proulx
tag 41554 + notabug close 41554 thanks Will Rosecrans wrote: > Based on an inane interview question that was discussed here on Twitter: > https://twitter.com/QuinnyPig/status/1265286980859908102 It's an interview question. The purpose of this type of question is never a practical existing

bug#41518: Bug in od?

2020-05-29 Thread Bob Proulx
Yuan Cao wrote: > > https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-_0027od-_002dx_0027-command-prints-bytes-in-the-wrong-order_002e > > Thanks for pointing me to this documentation. > > It just feels strange because the order does not reflect the order of the > characters in

bug#41518: Bug in od?

2020-05-28 Thread Bob Proulx
A little more information. Pádraig Brady wrote: > Yuan Cao wrote: > > I recently came across the following behavior. > > > > When using "--traditional x2" or "-x" option, it seems the order of hex > > code output for the characters is pairwise reversed (if that's the correct > > way of

Re: Using coreutils nohup in Windows

2020-05-24 Thread Bob Proulx
Keith Neargarder wrote: > I am trying to execute a Perl script using nohup but I get the > error:nohup: cannot run command 'test.pl': Exec format error Your operating system apparently does not understand #! scripts. I can see that you are running MS-Windows. Obviously the GNU Project is

Re: Questions related to stty(TOMITA)

2020-05-24 Thread Bob Proulx
富田黎 wrote: > I want to know the difference between stty command with "speed" and without > "speed". With the "speed" command the stty program prints the speed. Without it there is no printing of the speed. The Coreutils stty manual says: ‘speed’ Print the terminal speed. > When I

bug#41001: mkdir: cannot create directory ‘test’: File exists

2020-05-05 Thread Bob Proulx
taehwan jeoung wrote: > Can this error message be clarified? The directory already exists, it is > not a file. That is incorrect. Directories are files. FIFOs are files. Device nodes are files. Symlinks are files. Network sockets are files. They are all files. Therefore it is not incorrect

bug#41001: mkdir: cannot create directory ‘test’: File exists

2020-05-04 Thread Bob Proulx
Jonny Grant wrote: > Paul Eggert wrote: > > Jonny Grant wrote: > > > Is a more accurate strerror considered unreliable? > > > > > > Current: > > > mkdir: cannot create directory ‘test’: File exists > > > > > > Proposed: > > > mkdir: cannot create directory ‘test’: Is a directory > > > > I don't

bug#40958: date command give current time zone regardless of seconds since epoch requested.

2020-04-29 Thread Bob Proulx
tag 40958 + notabug close 40958 thanks GNAT via GNU coreutils Bug Reports wrote: > I am going to hazard a guess and say this is the expected behaviour, > but I cannot find anything though goog. The FAQ gives the recipe to figure these types of problems out.

bug#40904: listing multiple subdirectories places filenames in different columns between each subdirectory

2020-04-29 Thread Bob Proulx
tag 40904 + notabug close 40904 thanks Jim Clark wrote: > When I list a hard drive "ls -AR > list.txt" and import it into Libreoffice > Calc, then break the lines using "text-to-columns", I am not able to > perform a fixed format break so that the filenames are placed in their own > column. > >

bug#40220: date command set linux epoch time failed

2020-03-29 Thread Bob Proulx
Paul Eggert wrote: > Bob Proulx wrote: > > By reading the documentation for CLOCK_MONOTONIC in clock_gettime(2): > > GNU 'date' doesn't use CLOCK_MONOTONIC, so why is CLOCK_MONOTONIC relevant > to this bug report? GNU date uses clock_settime() and settimeofday() on my Deb

bug#40220: date command set linux epoch time failed

2020-03-29 Thread Bob Proulx
Paul Eggert wrote: > Bob Proulx wrote: > > I tested this in a victim system and if I was very quick I was able to > > log in and set the time to :10 seconds but no earlier. > > Sounds like some sort of atomic-time thing, since UTC and TAI differed by 10 > seconds when

bug#40220: date command set linux epoch time failed

2020-03-28 Thread Bob Proulx
tag 40220 + notabug close 40220 thanks shy wrote: > I use command date -s "1970-01-20 00:00:00" to set date, but it > failed. there is error message "date: can't set date: Invalid > argument". > It's UTC time and no timezone. This is most likely a limitation of your kernel. I can

bug#39850: "du" command can not count some files

2020-03-02 Thread Bob Proulx
Hyunho Cho wrote: > $ find /usr/bin -type f | wc -l > 2234 > > $ find /usr/bin -type f -print0 | du -b --files0-from=- | wc -l > Hard links. Files that are hard linked are only counted once by du since du is summing up the disk usage and hard linked files only use disk on the first usage.

BTS hint about unreachable submitters

2020-01-22 Thread Bob Proulx
Bernhard Voelker wrote: > I had to take out your email address to be able to reply to this issue: > > An error occurred while sending mail. The mail server responded: > Requested action not taken: mailbox unavailable > invalid DNS MX or A/ resource record. There is a useful feature of

bug#39135: Globbing with numbers does not allow me to specify order

2020-01-22 Thread Bob Proulx
Antti Savolainen wrote: > When doing a shortcut to unmount in a specific order, I am unable to > specify order with angle brackets. For example using 'umount /dev/sda[132]' > will result in the system unmounting them in numerological order. First 1 > then 2 and finally 3. What I need it to do is

bug#38621: gdu showing different sizes

2019-12-16 Thread Bob Proulx
TJ Luoma wrote: > AHA! Ok, now I understand a little better. I have seen the difference > between "size" and "size on disk" and did not realize that applied > here. > > I'm still not 100% clear on _why_ two "identical" files would have > different results for "size on disk" (it _seems_ like those

bug#35685: Request

2019-05-14 Thread Bob Proulx
tag 35685 + notabug close 35685 thanks Safdar Iqbal wrote: > Sir,Provide me to installation procedure of wien2k(14.2) on ubuntu > (19.04)sir chmod command cannot excite on my workstation core i7sir > please guide methanks Hello! You are asking about WIEN2k (http://www.wien2k.at/) and also

bug#35654: We've found a vulnerability of gnu chown, please check it and request a cve id for us.

2019-05-14 Thread Bob Proulx
The essence of this report appears to be an attack of the form, can we get the root user to perform an unsafe operation, in this case can we trick root into dereferencing a symbolic link, such as from ./poc to /etc, in order to perform a further action through the symlink. However this is not a

bug#35167: About chroot some question on centos6 kernel:

2019-04-21 Thread Bob Proulx
close 35167 thanks Hello 往事随风, 往事随风 wrote: > OS centos6.10 > kernel vmlinuz-2.6.32-754.el6.x86_64 > hello! > grub-install in a new disk /mnt/boot;copy /bin/bash and *.so ; chroot > /mnt/sysroot is ok!exit and ctrl+d Sounds like 'chroot' worked correctly in the above sequence. > use the new

bug#34713: Files vanishing when moving to different FS

2019-03-04 Thread Bob Proulx
tags 34713 notabug close 34713 thanks Hello Christoph, Christoph Michelbach wrote: > To reproduce this bug, you need two different file systems. Adapt the > paths to fit your system. Thank you for making this bug report. However what you are experiencing is due to the race condition created by

bug#34700: rm refuses to remove files owned by the user, even in force mode

2019-03-02 Thread Bob Proulx
Erik Auerswald wrote: > Bob Proulx wrote: > > However regardless of intentions and design if one really wants to > > smash it then this is easily scripted. No code modifications are > > needed. > > > >#!/bin/sh > >chmod -R u+w $1 > >rm

bug#34700: rm refuses to remove files owned by the user, even in force mode

2019-03-01 Thread Bob Proulx
Nicolas Mailhot wrote: > For their own reasons, the Go maintainers have decided the user Go cache > will now be read-only. > https://github.com/golang/go/issues/27161#issuecomment-433098406 Not wise. > That means cleaning up cache artefacts with rm does not work anymore >

bug#12400: rmdir runs "amok", users "curse" GNU...(as rmdir has no option to stay on 1 file system)...

2019-02-26 Thread Bob Proulx
L A Walsh wrote: > Bob Proulx wrote: > > Please provide an example. Something small. Something concrete. > > Please include the version of rmdir. > > The original bug stems from having to use wild cards to delete > all files in a directory instead of '.', as in being

bug#34524: wc: word count incorrect when words separated only by no-break space

2019-02-22 Thread Bob Proulx
vampyre...@gmail.com wrote: > The man page for wc states: "A word is a... sequence of characters delimited > by white space." > > But its concept of white space only seems to include ASCII white > space. U+00A0 NO-BREAK SPACE, for instance, is not recognized. Indeed this is because wc and

bug#34447: `pwd` doesn't show real working directory if directory is renamed by another session

2019-02-22 Thread Bob Proulx
tag 34447 + notabug close 34447 thanks Hello Chris, Chris Wright wrote: > I found that if a session's working directory is renamed or moved, > `pwd` doesn't show the real working directory. Thank you for your bug report. However I think the shell's built-in pwd is being confused with the

bug#34199: closed (Re: bug#34199: Small bug in cp (for win64))

2019-02-10 Thread Bob Proulx
Chris Kalish wrote: > Hmmm ... not sure of the distribution, but the help file pointed me at this > address: > C:\> cp --version > cp (GNU coreutils) 5.3.0 I always hate it when I am on your side of things and upstream says this to me. But here I am on the other side and going to say almost

bug#12400: rmdir runs "amok", users "curse" GNU...(as rmdir has no option to stay on 1 file system)...

2019-02-10 Thread Bob Proulx
L A Walsh wrote: > >> If you want a recursive option why not use 'rm -rf'? > > rmdir already provides a recursive delete that can cross > file system boundaries Please provide an example. Something small. Something concrete. Please include the version of rmdir. Something like: mkdir testdir

bug#13738: Add --all option to 'users' command

2019-02-10 Thread Bob Proulx
anatoly techtonik wrote: > Bob Proulx wrote: > > > Human users have UIDs starting at 1000, > > > > That assumption is incorrect. Many systems start users off at 100. > > Many others start users at 500. There isn't any univerial standard. > > It is a local s

bug#33943: (omitted) ls directly uses filename as option parameter

2019-01-02 Thread Bob Proulx
tags 33943 notabug close 33943 merge 33942 thanks This message generated a new bug ticket. I merged it with the previous bug ticket. westlake wrote: > I have omitted that I recently downgraded my coreutils to doublecheck > behaviour for ls, and noticed immediately the same behaviour was

bug#33577: ls lacks null terminator option

2018-12-03 Thread Bob Proulx
積丹尼 Dan Jacobson wrote: > For files with blanks in their names, > one shouldn't need this workaround: > $ ls -t | tr \\n \\0 | xargs -0 more > /tmp/z.txt > Please add a --print0 option. like find(1) has. I think that adding a --print0 option to 'ls' is not wise because it would suggest to people

Re: Feature request: "mv --relative" or "mv -r"

2018-11-24 Thread Bob Proulx
Daniel Böhmer wrote: > I want to propose a new parameter to the "mv" command which > helps when working with nested directory structures from the > structure's root dir as $PWD. New options require a strong rationale for addition. > Similar to the "ln" command's "--relative" parameter "mv" >

Re: FAQ confusing terminology regarding GNU and Linux Relationship

2018-10-17 Thread Bob Proulx
fdvwc4+ekdk64wrie5d8rnqd9...@guerrillamail.com wrote: > Under the section in the FAQ about uname, it refers to ``the Linux > kernel." Is not the GNU position that Linux should be referred to as > ``Linux, the kernel' or something similar? Thank you for asking! It gives us a chance to talk. :-)

Re: Broken link on website

2018-09-22 Thread Bob Proulx
Mihir Mehta wrote: > I thought you might want to fix a broken link (to > http://stagecraft.theprices.net/nomime.html) that appears on the main > Coreutils website (https://www.gnu.org/software/coreutils/coreutils.html). Thank you for you reporting that problem. It's appreciated. We didn't know

Re: chroot add option to mount /dev /proc /sys for you?

2018-04-25 Thread Bob Proulx
Marc Weber wrote: > So the question would turn into would it make sense to create a new tool > which (optionally cleans up) like this: > > with-mounts sys,proc,dev -- chroot ... > > There might be many use cases. > > I think there is interest. But I'm unsure where would be the place to > put

Re: FAQ rm backup section outdated

2018-03-05 Thread Bob Proulx
Garreau, Alexandre wrote: > Yet that FAQ section seems to be somewhat outdated: It became outdated when ext3 became popular. Because journaling file systems zero out the data. Originally I had said rather strongly that when deleted the files were gone. But then there were many people who

bug#22195: deviation from POSIX in tee

2015-12-18 Thread Bob Proulx
Pádraig Brady wrote: > Paul Eggert wrote: > > trap '' PIPE > > Generally you don't want to ignore SIGPIPE. > http://pixelbeat/programming/sigpipe_handling.html > as then you have to deal with EPIPE from write(): I wanted to add emphasis to this. Ignoring SIGPIPE causes a cascade of associated

bug#22128: dirname enhancement

2015-12-10 Thread Bob Proulx
Nellis, Kenneth wrote: > Still, my -f suggestion would be easier to type, > but I welcome your alternatives. Here is the problem. You would like dirname to read a list from a file. Someone else will want it to read a file list of files listing files. Another will want to skip one header line.

bug#22128: dirname enhancement

2015-12-10 Thread Bob Proulx
Pádraig Brady wrote: > Nellis, Kenneth wrote: > > E.g., to get a list of directories that contain a specific file: > > > > find -name "xyz.dat" | dirname -f - > > find -name "xyz.dat" -print0 | xargs -r0 dirname Also if using GNU find can use GNU find's -printf operand and %h to print the

bug#22087: Problem with stdbuf configure test for 8.24 on Solaris with Studio C compiler.

2015-12-03 Thread Bob Proulx
Paul Eggert wrote: > How about the attached (untested) patch instead? It should fix the > underlying problem, and thus avoid the need for fiddling with compiler > flags. > diff --git a/configure.ac b/configure.ac > index 66c8cbe..3f546e9 100644 > --- a/configure.ac > +++ b/configure.ac > @@

bug#22087: Problem with stdbuf configure test for 8.24 on Solaris with Studio C compiler.

2015-12-03 Thread Bob Proulx
Eric Blake wrote: > Bob Proulx wrote: > > Or is a return 0 already defaulted? It stood out to me that the > > previous return was unconditional and without an else or a > > fallthrough this is a change from the previous control flow. > > > > -return !(stdbu

bug#22001: Is it possible to tab separate concatenated files?

2015-11-23 Thread Bob Proulx
Macdonald, Kim - BCCDC wrote: > Sorry for the confusion - I wanted to add a tab (or even a new line) > after each file that was concatenated. Actually a new line may be > better. > > For Example: > Concatenate the files like so: > >gi|452742846|ref|NZ_CAFD01001.1| Salmonella enterica subsp.,

Re: feature request: tail -H

2015-11-22 Thread Bob Proulx
Pádraig Brady wrote: > Upon more careful consideration, I'm 50:50 > about adding per line processing to tail. >... > Perhaps we could just add the above snippet to the docs? > The big advantage is that it works everywhere already. Perhaps simply add a reference to 'multitail' being available? It

Re: Enhancement request for tee - please add the option to not quit on SIGPIPE when someother files are still opened

2015-11-20 Thread Bob Proulx
Bernhard Voelker wrote: > I'm not convinced that a new --no-stdout option is warranted: > why not simply redirect stdout to the last fifo? > > cat /dev/zero | head -c500M \ > | (/dev/shm/AAA/coreutils-8.24/src/tee -p \ > $d/fifo1 $d/fifo2 $d/fifo3 > $d/fifo4 ) 2>&1 \ > | > tee

Re: Enhancement request for tee - please add the option to not quit on SIGPIPE when someother files are still opened

2015-11-19 Thread Bob Proulx
Pádraig Brady wrote: > Jirka Hladky wrote: > > => it's almost there expect that it runs forever because of >/dev/null I am going to suggest this without trying it, always dangerous, but I have no time for a deep investment. Sorry. What about closing stdout? Then it would be closed right from

Re: Enhancement request for tee - please add the option to not quit on SIGPIPE when someother files are still opened

2015-11-18 Thread Bob Proulx
Pádraig Brady wrote: > Already done in the previous v8.24 release: Bob Proulx wrote: > If you ignore SIGPIPE in tee in the above then what will terminate the > tee process? Since the input is not ever terminated. http://www.gnu.org/software/coreutils/manual/html_node/tee-invocation

Re: Enhancement request for tee - please add the option to not quit on SIGPIPE when someother files are still opened

2015-11-18 Thread Bob Proulx
Jirka Hladky wrote: > I have recently run into an issue that tee will finish as soon as first > pipe it's writing to is closed. Please consider this example: > > $cat /dev/zero | tee >(head -c1 | wc -c ) >(head -c100M | wc -c ) >/dev/null > 1 > 65536 > > Second wc command will receive only 64kB

Re: Enhancement Requests + Patch: Unlink to support multiple arguments

2015-11-17 Thread Bob Proulx
Adam Brenner wrote: > I have an enhancement requests and patch ready for unlink to support > multiple arguments. Currently unlink does not accept more than one > argument to remove a link. I have a patch that adds that > functionality. For example: > > $ unlink link1 link2 link3 Why are you

Re: Enhancement Requests + Patch: Unlink to support multiple arguments

2015-11-17 Thread Bob Proulx
Pádraig Brady wrote: > Bob Proulx wrote: > > Why are you using unlink here instead of rm? I think you are using > > the wrong tool for the job. Why even care if unlink can take multiple > > arguments? >... > Good info thanks. Yes rm will not unlink() a dir. Is the use

Re: mkdir and ls display

2015-11-16 Thread Bob Proulx
Pádraig Brady wrote: > Ngô Huy wrote: > > > I had problem with mkdir and ls when I used command: > > > > > > mkdir "* /" && mkdir "* /etc" && ls. > > > > > > It only displayed *. > > > > Note as yet unreleased version of ls will use shell quoting > > to give a less

bug#21908: find -f breaks pipes ?

2015-11-16 Thread Bob Proulx
Flemming Gulager Danielsen wrote: > I am new here so if this is not the proper use of the maillist then > I am sorry. Others answered your output buffering question. Let me address the mailing list question. When you send a message to bug-coreutils it opens a bug ticket so that we can track

bug#21916: sort -u drops unique lines with some locales

2015-11-16 Thread Bob Proulx
Pádraig Brady wrote: > Christoph Anton Mitterer wrote: > > Attached is a file, that, when sort -u'ed in my locale, looses lines > > which are however unique. > > > > I've also attached the locale, since it's a custom made one, but the > > same seem to happen with "standard" locales as well, see

  1   2   3   4   5   6   7   8   9   10   >