Activity log for bug #915008

Date Who What changed Old value New value Message
2012-01-11 20:22:05 Dan Kegel bug added bug
2012-01-14 12:28:09 Launchpad Janitor grep (Ubuntu): status New Confirmed
2012-01-14 12:28:26 Wildjiji bug added subscriber Wildjiji
2012-01-17 00:18:04 Kenny Strawn summary grep outputs "input file is also the output" when running grub-update grep outputs "input file is also the output" when running update-grub
2012-01-17 00:18:26 Kenny Strawn description On ubuntu 12.04 alpha1, fully updated, running grub-update outputs grep: input file `/boot/grub/grub.cfg.new' is also the output http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651617 says two contradictory things about this: 1) that the smallest test case for this is sh -c 'echo foo >bar; exec >>bar; grep -q foo bar && echo found >&2' 2) that the smallest test case for this is grep -qr . > out I can verify that #1 is correct, and #2 is incorrect, i.e. on the system where grub-update outputs the error message in question, only the first one fails: dank@a3850:/tmp$ sh -c 'echo foo >bar; exec >>bar; grep -q foo bar && echo found >&2' grep: input file `bar' is also the output dank@a3850:/tmp$ grep -qr . > out ^C On ubuntu 12.04 alpha1, fully updated, running update-grub outputs grep: input file `/boot/grub/grub.cfg.new' is also the output http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651617 says two contradictory things about this: 1) that the smallest test case for this is    sh -c 'echo foo >bar; exec >>bar; grep -q foo bar && echo found >&2' 2) that the smallest test case for this is   grep -qr . > out I can verify that #1 is correct, and #2 is incorrect, i.e. on the system where grub-update outputs the error message in question, only the first one fails: dank@a3850:/tmp$ sh -c 'echo foo >bar; exec >>bar; grep -q foo bar && echo found >&2' grep: input file `bar' is also the output dank@a3850:/tmp$ grep -qr . > out ^C
2012-02-09 12:35:46 Dominique Lasserre bug added subscriber Dominique Lasserre
2012-02-21 17:26:50 Brian Murray marked as duplicate 934269
2012-02-21 22:13:04 Dominique Lasserre removed subscriber Dominique Lasserre