[Bug 619817] [NEW] grep -o causes infinite loop

Jonas Bonn jonas.bonn at gmail.com
Wed Aug 18 12:50:32 UTC 2010


Public bug reported:

Binary package hint: initramfs-tools

Bringing up initramfs busybox shell and executing following command
causes an infinite loop:

cat /proc/meminfo  | grep MemTotal | grep -o "[0-9]*"

This is, of course, a problem if the same command is issued in a script.
The culprit is the "-o" option on the last grep...

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
grep -o causes infinite loop
https://bugs.launchpad.net/bugs/619817
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.




More information about the kernel-bugs mailing list