bug#59819: Acknowledgement (Bug Report: [coreutils] echo command interprets wildcards, when read with the 'cat' command from a file, in a for-in loop)

2022-12-04 Thread th3_d0ctor
I missed the quote. Sorry for my bad. Kind regards Am Sun, 04 Dec 2022 16:54:02 + schrieb help-debb...@gnu.org (GNU bug Tracking System): > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been

bug#59819: Bug Report: [coreutils] echo command interprets wildcards, when read with the 'cat' command from a file, in a for-in loop

2022-12-04 Thread Andreas Schwab
On Dez 04 2022, th3_d0ctor wrote: > $ echo "*" >b; for i in `cat b`; do echo "$i"; done > ==> list current working directory instead of printing the wildcard '*' That's how it is supposed to work, since file name expansion is performed after all other expan

bug#49925: cat -E interprets sentinel newline at the end of buffer as an actual newline after a \r

2021-08-07 Thread Pádraig Brady
On 07/08/2021 14:07, Michael Debertol wrote: Hi, after https://lists.gnu.org/archive/html/coreutils/2021-02/msg3.html (unreleased), the behavior of cat -E was changed so that it prints "^M$" for "\r\n" line endings. Whenever it sees a \r "cat -E" checks if t

bug#49925: cat -E interprets sentinel newline at the end of buffer as an actual newline after a \r

2021-08-07 Thread Michael Debertol
Hi, after https://lists.gnu.org/archive/html/coreutils/2021-02/msg3.html (unreleased), the behavior of cat -E was changed so that it prints "^M$" for "\r\n" line endings. Whenever it sees a \r "cat -E" checks if the byte after is a \n, however that

bug#47348: Possible bug coreutils : no cat command

2021-03-23 Thread Paul Eggert
On 3/23/21 4:22 AM, Luís via GNU coreutils Bug Reports wrote:     In a reinstallation of Linux Mint 20 ( based on the ubuntu 20 focal fossa ), I found that the cat command, supported by the Coreutils package (8.30-ubuntu2) is no longer working. Please send a bug report to the Linux Mint

bug#47348: Possible bug coreutils : no cat command

2021-03-23 Thread Bernhard Voelker
On 3/23/21 12:22 PM, Luís via GNU coreutils Bug Reports wrote: > I found that the cat command, supported by the Coreutils package > (8.30-ubuntu2) is no longer working. That's quite a vague description, so no one will probably be able to help you based on that. What exactly happens wh

bug#47348: Possible bug coreutils : no cat command

2021-03-23 Thread Luís via GNU coreutils Bug Reports
    In a reinstallation of Linux Mint 20 ( based on the ubuntu 20 focal fossa ), I found that the cat command, supported by the Coreutils package (8.30-ubuntu2) is no longer working. I tried to reinstall ( just reinstall, because purge breaks the system, so I couldn't test removing possibly

bug#9089: pipe failure with cat and head of coreutils 6.12

2019-01-19 Thread Paul Eggert
Assaf Gordon wrote: If the issue of cat(1) supporting socketpair/ECONNRESET instead of pipes/EPIPE is still relevant, we can re-open the bug. 'cat' treats EPIPE on pipes the same way it treats ECONNRESET on socket pairs: $ (trap '' PIPE; cat /usr/bin/emacs) | : cat: write error: Broken pipe

bug#9089: pipe failure with cat and head of coreutils 6.12

2019-01-17 Thread Assaf Gordon
close 9089 stop (triaging old bugs) Hello, On 2011-07-15 5:30 a.m., Philipp Thomas wrote: I'm trying to track down a bug in cat of coreutils 6.12. Doing cat /var/log/Xorg.0.log | head -n70 under ksh consistently fails with 'cat: write error: Connection reset by peer'. It does not fail when

bug#34115: coreutils v. 8.30– Document's content gets deleted using cat(1)

2019-01-17 Thread Assaf Gordon
tags 34115 notabug close 34115 merge 34115 33823 stop Hello, On 2019-01-17 5:53 a.m., Ricky Tigg wrote: [...] $ cat > .inputrc set enable-bracketed-paste on Press *Return*, then *Ctrl D*. [...] Content of *.inputrc*, which is expected to be still present, has been This sounds v

bug#34115: coreutils v. 8.30– Document's content gets deleted using cat(1)

2019-01-17 Thread Ricky Tigg
Hi. On *Fedora Desktop 29*, using *GNU bash*, v. 4.4.23(1), in a *GUI* terminal emulator – *gnome-terminal* was used – under your home directory, create if not present file *.inputrc* a follow: $ cat > .inputrc set enable-bracketed-paste on Press *Return*, then *Ctrl D*. $ cat .inputrc

bug#33824: coreutils v.8.30 – An expression part of a cat command is interpreted as "ambiguous redirect" when applied to a target.

2018-12-22 Thread Assaf Gordon
tags 33824 notabug close 33824 stop Hello, On 2018-12-21 8:32 a.m., Ricky Tigg wrote: Command executed: $ cat a* >> b* bash: b*: ambiguous redirect Thought the same syntax is used with success when applied only to source files: $ cat a* >> b $ Probably a bug. This

bug#33824: coreutils v.8.30 – An expression part of a cat command is interpreted as "ambiguous redirect" when applied to a target.

2018-12-21 Thread Ricky Tigg
Component: coreutils.x86_64 8.30. Observation not reported at pixelbeat.org <https://www.pixelbeat.org/docs/coreutils-gotchas.html>. Command executed: $ cat a* >> b* bash: b*: ambiguous redirect Thought the same syntax is used with success when applied only to source files: $

bug#33774: glitch in cat

2018-12-19 Thread Bernhard Voelker
tags 33774 notabug close 33774 stop On 12/16/18 8:58 PM, Valentin Schild wrote: > somehow, when using cat to display a file's content, I get output to > the command line > The file to output contains > ^[Z > like attached file "catbug". > > In terminal I type

bug#33774: glitch in cat

2018-12-16 Thread Valentin Schild
Hi, somehow, when using cat to display a file's content, I get output to the command line The file to output contains ^[Z like attached file "catbug". In terminal I type cat catbug catbug Description: Binary data

bug#14505: Bug in "cat" command

2018-10-23 Thread Assaf Gordon
close 14505 stop (triaging old bugs) On 29/05/13 11:19 PM, Kakkar, Mayank (NSN - IN/Bangalore) wrote: Thanks. That was very informative. With no further comments, I'm closing this bug. -assaf

bug#30160: cat buffer overflow?

2018-01-19 Thread Bernhard Voelker
tag 30160 notabug close 30160 stop On 01/18/2018 01:31 PM, Rdrpenguin Minecraft and More wrote: > If 'cat' is run with a big enough file, say /dev/sda, the terminal gets > corrupted. This corruption may also extend beyond the terminal. > > Steps to reproduce: > 1. Run '/bin/cat

bug#30160: cat buffer overflow?

2018-01-18 Thread Rdrpenguin Minecraft and More
If 'cat' is run with a big enough file, say /dev/sda, the terminal gets corrupted. This corruption may also extend beyond the terminal. Steps to reproduce: 1. Run '/bin/cat /dev/sda'. 2. Wait from 2 to 3 minutes. 3. Ctrl-C to exit. 4. Observe corrupted terminal This was tested on gnome-terminal

bug#24007: Report cat bugs to bug-coreutils@gnu.org

2016-07-16 Thread Eric Blake
tag 24007 notabug thanks On 07/16/2016 12:11 AM, NAVEEN KUMAR wrote: > Hi Team, > > Greetings! > > I was sitting next my system looking for some basic code brush up and was > playing with CAT command, and though of some kind of additional features to > our

bug#24007: Report cat bugs to bug-coreutils@gnu.org

2016-07-16 Thread NAVEEN KUMAR
Hi Team, Greetings! I was sitting next my system looking for some basic code brush up and was playing with CAT command, and though of some kind of additional features to our existing CAT command, such as... *"Write a CAT command program, which will allow appending text or lines of

bug#23263: cat: missingfile: No such file or directory

2016-04-10 Thread Jonny Grant
Hello Paul On 10/04/16 20:01, Paul Eggert wrote: Jonny Grant wrote: Hello I noticed that cat doesn't have an accurate message in the following use-case: $ cat missingfile cat: missingfile: No such file or directory $ mkdir testdir $ cat testdir cat: testdir: Is a directory

bug#23263: cat: missingfile: No such file or directory

2016-04-10 Thread Paul Eggert
Jonny Grant wrote: Hello I noticed that cat doesn't have an accurate message in the following use-case: $ cat missingfile cat: missingfile: No such file or directory $ mkdir testdir $ cat testdir cat: testdir: Is a directory The "No such file or directory" message occu

bug#23263: cat: missingfile: No such file or directory

2016-04-10 Thread Jonny Grant
Hello I noticed that cat doesn't have an accurate message in the following use-case: $ cat missingfile cat: missingfile: No such file or directory $ mkdir testdir $ cat testdir cat: testdir: Is a directory I wrote up the details of the ENOENT problem here: http://technoramauk.blogspot.co.uk

bug#20482: Colour of Terminal changes with some files using cat

2015-05-01 Thread Eric Blake
tag 20482 notabug thanks On 12/31/1969 05:00 PM, wrote: I have noticed that when running 'cat' to look at certain files that for some reason the end of the file is in a different embolden colour, which then makes all of my Terminal text that colour as well as bold. An example is when I ran

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-18 Thread Jim Meyering
On Mon, Dec 15, 2014 at 9:11 PM, KO Myung-Hun kom...@gmail.com wrote: Jim Meyering wrote: On Mon, Dec 15, 2014 at 8:35 PM, KO Myung-Hun kom...@gmail.com wrote: Paul Eggert wrote: KO Myung-Hun wrote: /* Redirection and wildcarding when done by the utility itself. Generally a noop, but

bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2)

2014-12-18 Thread KO Myung-Hun
/ginstall -man/vdir.1: src/vdir - -man/base64.1:src/base64 -man/basename.1: src/basename -man/cat.1: src/cat -man/chcon.1: src/chcon -man/chgrp.1: src/chgrp -man/chmod.1: src/chmod -man/chown.1: src/chown -man/chroot.1:src/chroot -man/cksum.1: src/cksum

bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2)

2014-12-18 Thread Pádraig Brady
reopen 19377 stop On 19/12/14 01:13, KO Myung-Hun wrote: GNU bug Tracking System wrote: Your bug report #19377: [PATCH 1/4] doc: add $(EXEEXT) suffix to the executables which was filed against the coreutils package, has been closed. The explanation is attached below, along with your

bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2)

2014-12-18 Thread KO Myung-Hun
Pádraig Brady wrote: reopen 19377 stop On 19/12/14 01:13, KO Myung-Hun wrote: GNU bug Tracking System wrote: Your bug report #19377: [PATCH 1/4] doc: add $(EXEEXT) suffix to the executables which was filed against the coreutils package, has been closed. The explanation is attached

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread Pádraig Brady
On 15/12/14 01:15, KO Myung-Hun wrote: Pádraig Brady wrote: forcemerge 19378 19377 stop On 14/12/14 03:47, KO Myung-Hun wrote: And ln,ls,mv,rm,tail. * src/cat.c (main): Expand wildcards on OS/2. * src/chcon.c (main): Likewise. * src/chgrp.c (main): Likewise. * src/chmod.c (main):

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread Jim Meyering
On Mon, Dec 15, 2014 at 12:57 AM, Pádraig Brady p...@draigbrady.com wrote: On 15/12/14 01:15, KO Myung-Hun wrote: Pádraig Brady wrote: forcemerge 19378 19377 stop On 14/12/14 03:47, KO Myung-Hun wrote: And ln,ls,mv,rm,tail. * src/cat.c (main): Expand wildcards on OS/2. * src/chcon.c

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread KO Myung-Hun
Pádraig Brady wrote: On 15/12/14 01:15, KO Myung-Hun wrote: Pádraig Brady wrote: forcemerge 19378 19377 stop On 14/12/14 03:47, KO Myung-Hun wrote: And ln,ls,mv,rm,tail. * src/cat.c (main): Expand wildcards on OS/2. * src/chcon.c (main): Likewise. * src/chgrp.c (main): Likewise. *

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread Paul Eggert
KO Myung-Hun wrote: /* Redirection and wildcarding when done by the utility itself. Generally a noop, but used in particular for native VMS. */ #ifndef initialize_main -# define initialize_main(ac, av) +# ifndef __OS2__ +# define initialize_main(ac, av) +# else What happened to VMS?

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread KO Myung-Hun
Paul Eggert wrote: KO Myung-Hun wrote: /* Redirection and wildcarding when done by the utility itself. Generally a noop, but used in particular for native VMS. */ #ifndef initialize_main -# define initialize_main(ac, av) +# ifndef __OS2__ +# define initialize_main(ac, av) +#

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread Jim Meyering
On Mon, Dec 15, 2014 at 8:35 PM, KO Myung-Hun kom...@gmail.com wrote: Paul Eggert wrote: KO Myung-Hun wrote: /* Redirection and wildcarding when done by the utility itself. Generally a noop, but used in particular for native VMS. */ #ifndef initialize_main -# define

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-15 Thread KO Myung-Hun
Jim Meyering wrote: On Mon, Dec 15, 2014 at 8:35 PM, KO Myung-Hun kom...@gmail.com wrote: Paul Eggert wrote: KO Myung-Hun wrote: /* Redirection and wildcarding when done by the utility itself. Generally a noop, but used in particular for native VMS. */ #ifndef initialize_main -#

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-14 Thread Pádraig Brady
forcemerge 19378 19377 stop On 14/12/14 03:47, KO Myung-Hun wrote: And ln,ls,mv,rm,tail. * src/cat.c (main): Expand wildcards on OS/2. * src/chcon.c (main): Likewise. * src/chgrp.c (main): Likewise. * src/chmod.c (main): Likewise. * src/chown.c (main): Likewise. * src/cp.c (main):

bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-14 Thread KO Myung-Hun
Pádraig Brady wrote: forcemerge 19378 19377 stop On 14/12/14 03:47, KO Myung-Hun wrote: And ln,ls,mv,rm,tail. * src/cat.c (main): Expand wildcards on OS/2. * src/chcon.c (main): Likewise. * src/chgrp.c (main): Likewise. * src/chmod.c (main): Likewise. * src/chown.c (main): Likewise.

bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2

2014-12-13 Thread KO Myung-Hun
And ln,ls,mv,rm,tail. * src/cat.c (main): Expand wildcards on OS/2. * src/chcon.c (main): Likewise. * src/chgrp.c (main): Likewise. * src/chmod.c (main): Likewise. * src/chown.c (main): Likewise. * src/cp.c (main): Likewise. * src/du.c (main): Likewise. * src/head.c (main): Likewise. * src/ln.c

bug#18449: cat x x error even when x is empty

2014-09-11 Thread Vincent Lefevre
With coreutils 8.23 under Debian/unstable: ypig% : x ypig% cat x x cat: x: input file is output file ypig% POSIXLY_CORRECT=1 cat x x cat: x: input file is output file while there's no reason to return an error in this case: the file should just remain empty. Using the same file for input

bug#18449: cat x x error even when x is empty

2014-09-11 Thread Pádraig Brady
On 09/11/2014 02:00 PM, Vincent Lefevre wrote: With coreutils 8.23 under Debian/unstable: ypig% : x ypig% cat x x cat: x: input file is output file ypig% POSIXLY_CORRECT=1 cat x x cat: x: input file is output file while there's no reason to return an error in this case: the file

bug#18449: cat x x error even when x is empty

2014-09-11 Thread Eric Blake
On 09/11/2014 07:20 AM, Pádraig Brady wrote: while there's no reason to return an error in this case: the file should just remain empty. Testing for an empty file is enough of an additional special case over the existing check for same files that I don't think it is worth it. BTW, when x

bug#18449: cat x x error even when x is empty

2014-09-11 Thread Vincent Lefevre
On 2014-09-11 14:20:06 +0100, Pádraig Brady wrote: On 09/11/2014 02:00 PM, Vincent Lefevre wrote: This may not seem really useful here, but this can potentially break scripts with things like: cat $foo $bar where $foo may be the same file as $bar only if it is empty. I'm

bug#18449: cat x x error even when x is empty

2014-09-11 Thread Leslie S Satenstein
With my Fedora version, there is an error message (input file is output file) cat x x cat: x: input file is output file Regards Leslie From: Pádraig Brady p...@draigbrady.com To: Vincent Lefevre vinc...@vinc17.net; 18...@debbugs.gnu.org Sent

bug#18449: cat x x error even when x is empty

2014-09-11 Thread Paul Eggert
an lseek with SEEK_CUR so it's all in-memory. Plus, the POSIX 'cat' spec gives an example of using 'cat' to copy an empty regular file to itself, and (not unreasonably) says that should work. As far as POSIX conformance goes, I don't think we need to worry about POSIXLY_CORRECT here. We'll get

bug#18350: /bin/cat segfault

2014-08-29 Thread Pádraig Brady
tag 18350 notabug close 18350 stop On 08/29/2014 12:40 AM, David King wrote: I have recently upgraded from Ubuntu 10.?? to 12.?? to 14.04. Anytime I run /bin/cat, it segfaults: king@cloud-laptop:~/workspace$ cat foo Segmentation fault (core dumped) king@cloud-laptop:~/workspace$ file

bug#18350: /bin/cat segfault

2014-08-29 Thread Bob Proulx
David King wrote: king@cloud-laptop:~/workspace$ cat foo Segmentation fault (core dumped) Problems such as these have sometimes occurred when the hardware has started to fail. Such as for failing memory or other hardware caused problems. I would run memtest on the system. I would inspect

bug#18350: /bin/cat segfault

2014-08-28 Thread David King
I have recently upgraded from Ubuntu 10.?? to 12.?? to 14.04. Anytime I run /bin/cat, it segfaults: king@cloud-laptop:~/workspace$ cat foo Segmentation fault (core dumped) king@cloud-laptop:~/workspace$ file /bin/cat /bin/cat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV

bug#17384: bug in the Unix cat command

2014-05-01 Thread Peter Rowat
Hello Gnu folks, I had 3 files matching “isi.*.02p0: wc -l isi.*.02p0 2 isi.R.0400.02p0 15500 isi.Ra.0400.02p0 15600 isi.Rb.0400.02p0 51100 total I wanted to combine them into one big file, while knowing *not* to cat into a file with same name as an original file, I did

bug#17384: bug in the Unix cat command

2014-05-01 Thread Bernhard Voelker
, while knowing *not* to cat into a file with same name as an original file, I did this: cat isi.*.02p0 isi.Rall.0400.02p0 But it never returned!! By the time I hit Ctrl-C, the file isi.Rall.0400.02p0 was already 3000 times bigger than the biggest of the original files. A hidden loop

bug#14505: Bug in cat command

2013-05-29 Thread Kakkar, Mayank (NSN - IN/Bangalore)
Hi RHEL Team, I was working with cat command and testing its functionality. I learnt in one of the manuals that if multiple files are specified, the contents of the files are concatenated in the output, but line numbering is restarted at 1 for each file. However in an experiment I found

bug#14505: Bug in cat command

2013-05-29 Thread Eric Blake
tag 14505 needinfo thanks On 05/29/2013 05:57 AM, Kakkar, Mayank (NSN - IN/Bangalore) wrote: Hi RHEL Team, This is the upstream coreutils list; if you were trying to reach RHEL support, you should contact Red Hat per your contract with them. I was working with cat command and testing its

bug#14505: Bug in cat command

2013-05-29 Thread Kakkar, Mayank (NSN - IN/Bangalore)
in the output, but line numbering is restarted at 1 for each file. As an illustration, the following command, $ cat -b fruits users produces the output 1 Fruit Price/lbs Quantity 2 Banana $0.89 100 3 Peach $0.79 65 4 Kiwi $1.50 22 5 Pineapple $1.29 35 6 Apple $0.99 78 1 ranga 2 vathsa 3 amma So

bug#14505: Bug in cat command

2013-05-29 Thread Bob Proulx
, the contents of the files are concatenated in the output, but line numbering is restarted at 1 for each file. As an illustration, the following command, $ cat -b fruits users produces the output 1 Fruit Price/lbs Quantity 2 Banana $0.89 100 3 Peach $0.79 65 4 Kiwi $1.50 22 5 Pineapple $1.29

bug#14505: Bug in cat command

2013-05-29 Thread Kakkar, Mayank (NSN - IN/Bangalore)
...@debbugs.gnu.org Subject: Re: bug#14505: Bug in cat command Kakkar, Mayank (NSN - IN/Bangalore) wrote: I am referring to the manual - 'Sams teach yourself shell in 24 hours', which is authored by Sriranga Veeraraghavan. It isn't unusual for books to have bugs too. Following is example potrayed

bug#14190: cat command bug

2013-04-15 Thread Bob Proulx
hockseng leow wrote: Memory can fail. I thought there is a difference between ctrl-c and ctrl-d. I checked with an old Redhat and it also behaved that way. No worries! Thanks for confirming this information for the bug log. Bob

bug#14190: cat command bug

2013-04-14 Thread Bob Proulx
hockseng leow wrote: Ctrl-c is behaving like Ctrl-d. In the context you describe, yes, by necessity. It always has. When redirecting from standard-in to an existing file, Ctrl-c empties out the old file contents. In the past, Ctrl-c just aborts cat and leave the existing file unchanged

bug#14190: cat command bug

2013-04-14 Thread hockseng leow
, yes, by necessity. It always has. When redirecting from standard-in to an existing file, Ctrl-c empties out the old file contents. In the past, Ctrl-c just aborts cat and leave the existing file unchanged. $ cat abc.txt abc $ cat abc.txt def ^C $ cat abc.txt def That is the test

bug#14190: cat command bug

2013-04-13 Thread hockseng leow
$ cat abc.txt abc $ cat abc.txt def ^C $ cat abc.txt def On Fri, Apr 12, 2013 at 5:41 PM, Pádraig Brady p...@draigbrady.com wrote: tag 14190 notabug close 14190 stop On 04/12/2013 03:29 AM, hockseng leow wrote: Hello, Ctrl-c is behaving like Ctrl-d. When redirecting from standard

bug#14190: cat command bug

2013-04-12 Thread hockseng leow
Hello, Ctrl-c is behaving like Ctrl-d. When redirecting from standard-in to an existing file, Ctrl-c empties out the old file contents. In the past, Ctrl-c just aborts cat and leave the existing file unchanged. It happens in Fedora 17. Please fix. Thanks. -- Leow Hock Seng Tel:64463211

bug#13913: Regarding cat command?

2013-03-09 Thread Bob Proulx
tag 13913 + notabug close 13913 thanks Naveen wrote: I am naveen kumar, currently studying B.Tech CSE 3 rd year. I am developing a application in linux 10.04 by using java. In my application am showing battery status of system. for that am accessing the file cat /proc/acpi/battery/BAT0

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-03 Thread Rafal W.
Thanks for your help. I've reported this bug against Ubuntu. Follow-up: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1060767 Kind Regards, Rafal Sent from my iPhone

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-03 Thread Bob Proulx
Rafal W. wrote: Thanks for your help. I've reported this bug against Ubuntu. Follow-up: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1060767 Since you are using Ubuntu that is the right place to pursue the key mapping problem. Your report there included good information. But...

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-03 Thread Bob Proulx
bronek wrote: Yes, coreutils was a mistake, because they've stupid autocomplete textfield, when typing kernel, ubuntu or other keywords which I've tried, all the time was too general, so how do I know what other options are if I don't see any results (at last first 10?)? So I was happy to type

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-02 Thread Rafal W.
Yes, the Alt-SysRq + 1-4,7-9,0 keys do nothing on mine as well, even on the plain console. But if I send the numbers to sysrq-trigger, then it works. So probably it's a separate bug report. I've 1 in sysrq. $ cat /proc/sys/kernel/sysrq 1 So in summary the process is killed if the key

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Rafal W.
Hi Bob, thanks for the reminder, but I didn't receive any message from Alan, could you re-post it? Maybe it went to Spam. Is there any web version of this bug tracker? At work they're blocking the access for all the emails. Kind Regards, Rafal Sent from my iPhone On 30 Sep 2012, at 07:40, Bob

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Rafal W.
Yes, I've tried and it didn't QUIT (it ignored SysRq signal). I didn't know about Ctrl-4 shortcut for sending the QUIT signal. After that I had to kill the process, because Control-D didn't work. So I'm assuming it's by design. Thanks for your help. Kind Regards, Rafal Sent from my iPhone On 30

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Rafal W.
But if Control-4 is sending QUIT signal, why: Control-1 does kill the process? I've checked again and actually it's not even about the number. When I press only: Control-SysRq it kills the process as well. Sometimes it happens on press, sometimes on release. Kind Regards, Rafal Sent from my

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Jim Meyering
Rafal W. wrote: Hi Bob, thanks for the reminder, but I didn't receive any message from Alan, could you re-post it? Maybe it went to Spam. Is there any web version of this bug tracker? Yes. Any mail sent to bug-coreutils gets an issue number, which comes with a URL like this:

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Alan Curry
Rafal W. writes: But if Control-4 is sending QUIT signal, why: Control-1 does kill the process? I've checked again and actually it's not even about the number. When I press only: Control-SysRq it kills the process as well. Sometimes it happens on press, sometimes on release. Is your SysRq

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Rafal W.
Hi, Thanks for this info. Just to explain why I press it with Control and Alt. My Linux freezing all the time, so sometimes I'm using kernel SysRq for the reason. So in example if I want to check all currently held Locks with SysRq-D (which doesn't work anyway), so: When I press SysRq-D, I've

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Alan Curry
Rafal W. writes: So in example if I want to check all currently held Locks with SysRq-D (which doesn't work anyway), so: When I press SysRq-D, I've KSnapshot popping up. In the text console it doesn't work at all. ksnapshot sounds like something that might respond to a PrtSc keypress. This

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Rafal W.
Thanks. Without Control more things are working. Alt-SysRq-m and other letters works, doesn't kill the process. So the only problems are numbers: Alt-SysRq-1 to 9 (exempt 5 6) is killing the process. Looks like 5 and 6 have some special privileges. Kind Regards, Rafal Sent from my iPhone On 1

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-10-01 Thread Bob Proulx
can do this by using the /proc kernel interface directly. $ cat /proc/sys/kernel/sysrq What level number is produced there? # echo h /proc/sysrq-trigger # tail /var/log/syslog (or tail /var/log/messages or whatever) On my system it shows: $ cat /proc/sys/kernel/sysrq 438

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-09-29 Thread Bob Proulx
Rafal, Any news? Please try the steps that Alan has suggested. I marked the bug ticket as needing more information. Bob

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-09-20 Thread Rafal W.
$ cat /dev/zero ^\Quit (core dumped) Steps to reproduce: 1. Switch to any text console (it doesn't happen in X). 2. Login 3. Run: cat /dev/zero 4. Press: Ctrl-Alt-SysRq-1 (or any number except letters:) 5. You'll see: ^\Quit (core dumped) Here is the backtrace: kenorb@kenorb-HP-Compaq

bug#12478: cat SEGV when I press Ctrl-Alt-SysRq-1 on text console

2012-09-20 Thread Alan Curry
Rafal W. writes: $ cat /dev/zero ^\Quit (core dumped) Steps to reproduce: 1. Switch to any text console (it doesn't happen in X). 2. Login 3. Run: cat /dev/zero 4. Press: Ctrl-Alt-SysRq-1 (or any number except letters:) What's that supposed to do? Ctrl isn't normally used

bug#9344: about the command of 'cat'

2011-08-22 Thread 博高
Hello: I am a user of ubuntu 10.04.2.While I am trying to use 'cat' to display a binary file.Every letter on my display goes wrong yours GB from China

bug#9344: about the command of 'cat'

2011-08-22 Thread Bob Proulx
tags 9344 + notabug thanks 博高 wrote: Hello: I am a user of ubuntu 10.04.2.While I am trying to use 'cat' to display a binary file.Every letter on my display goes wrong yours GB from China The 'cat' program copies each file to standard output concatenating files. It is working

bug#9344: about the command of 'cat'

2011-08-22 Thread Pádraig Brady
On 08/22/2011 08:21 PM, 博高 wrote: Hello: I am a user of ubuntu 10.04.2.While I am trying to use 'cat' to display a binary file.Every letter on my display goes wrong yours GB from China There was probably a character sequence in the binary file to put your terminal

bug#9344: closed (Re: bug#9344: about the command of 'cat')

2011-08-22 Thread 博高
Thanks very much On Tue, Aug 23, 2011 at 4:17 AM, GNU bug Tracking System help-debb...@gnu.org wrote: Your bug report #9344: about the command of 'cat' which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report

bug#9089: pipe failure with cat and head of coreutils 6.12

2011-07-15 Thread Philipp Thomas
I'm trying to track down a bug in cat of coreutils 6.12. Doing cat /var/log/Xorg.0.log | head -n70 under ksh consistently fails with 'cat: write error: Connection reset by peer'. It does not fail when run under bash and it does not fail in current coreutils . It seems that ksh implementing

bug#9089: pipe failure with cat and head of coreutils 6.12

2011-07-15 Thread Eric Blake
On 07/15/2011 05:30 AM, Philipp Thomas wrote: I'm trying to track down a bug in cat of coreutils 6.12. Doing cat /var/log/Xorg.0.log | head -n70 under ksh consistently fails with 'cat: write error: Connection reset by peer'. It does not fail when run under bash and it does not fail

bug#9089: pipe failure with cat and head of coreutils 6.12

2011-07-15 Thread Pádraig Brady
On 15/07/11 14:03, Eric Blake wrote: On 07/15/2011 05:30 AM, Philipp Thomas wrote: I'm trying to track down a bug in cat of coreutils 6.12. Doing cat /var/log/Xorg.0.log | head -n70 under ksh consistently fails with 'cat: write error: Connection reset by peer'. It does not fail when run

bug#9089: pipe failure with cat and head of coreutils 6.12

2011-07-15 Thread Philipp Thomas
* Eric Blake (ebl...@redhat.com) [20110715 15:03]: And that behavior of ksh is probably a violation of POSIX: http://austingroupbugs.net/view.php?id=205 that discussion is from 2006 and ksh has had that feature for quite a bit longer. The reasin is that sockpairs are faster than pipes and and

bug#9089: pipe failure with cat and head of coreutils 6.12

2011-07-15 Thread Philipp Thomas
* Pádraig Brady (p...@draigbrady.com) [20110715 16:20]: Note the reason ksh does this, is to allow commands to efficiently inspect the input, rather than reading byte by byte. This is related to the recent `stdbuf -i0` discussions. And that noticeable speedup is one of ksh's main advantages,

bug#7250: cat manpage should refer to tac

2010-10-20 Thread Rodrigo Campos
Hi, Please keep me in Cc: since I'm not subscribed. 'tac' by default does the same as cat, but in reverse order. I didn't know about 'tac' and it took me a while (about 5 minutes, but anyways :-P) to find it. I think having a see also tac on cat's manpage could be useful and save people some

bug#7250: cat manpage should refer to tac

2010-10-20 Thread Jim Meyering
Rodrigo Campos wrote: 'tac' by default does the same as cat, but in reverse order. I didn't know about 'tac' and it took me a while (about 5 minutes, but anyways :-P) to find it. I think having a see also tac on cat's manpage could be useful and save people some time :) The attached patch

bug#6383: [PATCH] cat: improve documentation

2010-06-14 Thread Eric Blake
, 2010 at 13:17, Eric Blake ebl...@redhat.com wrote: * src/cat.c (usage): Clarify that -b overrides -n. * doc/coreutils.texi (cat invocation): Likewise. * THANKS: Update. Suggested by Chas. Owens, in bug 6383. No other comments, so I went ahead and pushed the patch. Thanks again for the report

bug#6383: cat has misleading documentation

2010-06-09 Thread Chas. Owens
The -n option is documented as number all output lines, but when -b is present it only numbers non-blank lines. The documentation should read number output lines. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

bug#6383: [PATCH] cat: improve documentation

2010-06-09 Thread Eric Blake
* src/cat.c (usage): Clarify that -b overrides -n. * doc/coreutils.texi (cat invocation): Likewise. * THANKS: Update. Suggested by Chas. Owens, in bug 6383. --- The -n option is documented as number all output lines, but when -b is present it only numbers non-blank lines. The documentation

bug#6383: [PATCH] cat: improve documentation

2010-06-09 Thread Chas. Owens
overrides -n. * doc/coreutils.texi (cat invocation): Likewise. * THANKS: Update. Suggested by Chas. Owens, in bug 6383. --- The -n option is documented as number all output lines, but when -b is present it only numbers non-blank lines.  The documentation should read number output lines. Thanks

After 'cat' command on binary files : BUG on display

2010-02-04 Thread david johann
Hello, Please excuse my bad english : Bug Report -- Context: Debian Lenny linux 2.6.26-2-686 XFCE4 with Terminal 0.2.8 coreutils 6.10-6 What I did: --- I tried to display binary files with 'cat': $ cat ~/an_audio_file.rm $ cat /bin/cp What I expected

Re: After 'cat' command on binary files : BUG on display

2010-02-04 Thread Bob Proulx
david johann wrote: I tried to display binary files with 'cat': $ cat ~/an_audio_file.rm $ cat /bin/cp That isn't expected to behave nicely. You really shouldn't be doing that. What I expected: -- displaying unreadable chars from the binary file; -- and then coming back

Re: After 'cat' command on binary files : BUG on display

2010-02-04 Thread david johann
Thank you very much! 2010/2/4 Bob Proulx b...@proulx.com david johann wrote: I tried to display binary files with 'cat': $ cat ~/an_audio_file.rm $ cat /bin/cp That isn't expected to behave nicely. You really shouldn't be doing that. What I expected

misc/cat-buf test failure

2009-09-07 Thread Jim Meyering
Hi Pádraig, On my 6th run of make check, the cat-buf test failed. It's an inherently racy test. If the dd process is starved until 2 is printed, it will end up printing both lines to out. Here's the code: # Use a fifo rather than a pipe in the tests below # so that the producer (cat

[PATCH] tests: misc/cat-buf: clean up syntax

2009-09-07 Thread Jim Meyering
While I was looking at this test... From a4a864da365fe70eb3a69fd4347f8f747a258efd Mon Sep 17 00:00:00 2001 From: Jim Meyering meyer...@redhat.com Date: Mon, 7 Sep 2009 20:23:03 +0200 Subject: [PATCH] tests: misc/cat-buf: clean up syntax * tests/misc/cat-buf: Don't suppress dd's stderr. Remove

Re: misc/cat-buf test failure

2009-09-07 Thread Pádraig Brady
Jim Meyering wrote: Hi Pádraig, On my 6th run of make check, the cat-buf test failed. It's an inherently racy test. If the dd process is starved until 2 is printed, it will end up printing both lines to out. Hmm. 0.2s was too short between writes so. I've bumped it up to 0.5s since 0.2

Re: misc/cat-buf test failure

2009-09-07 Thread Jim Meyering
Pádraig Brady wrote: Hmm. 0.2s was too short between writes so. I've bumped it up to 0.5s since 0.2 failed so infrequently. I've also changed to just skip on possible failure. That should do it. Thanks.

[PATCH] doc: adjust 7.2 cat, cp, install, mv, split speed-up NEWS item

2009-04-03 Thread Jim Meyering
FYI, From e1e5963a9df8f1e9184f87c64db796fd63586090 Mon Sep 17 00:00:00 2001 From: Jim Meyering meyer...@redhat.com Date: Fri, 3 Apr 2009 21:52:16 +0200 Subject: [PATCH] doc: adjust 7.2 cat,cp,install,mv,split speed-up NEWS item * NEWS: Reword an entry from 7.2 and change linux to GNU/Linux

Re: cat fionread usage bug?

2009-03-11 Thread Jim Meyering
Pádraig Brady wrote: I was just looking at this line in cat.c: http://url.ie/1aq1 if (input_pending) write_pending (outbuf, bpout); Shouldn't that be? if (!input_pending) write_pending (outbuf, bpout); Oh! You're right. That's a bug (mine): disabled optimization.

  1   2   3   >