
https://bugzilla.novell.com/show_bug.cgi?id=797821 https://bugzilla.novell.com/show_bug.cgi?id=797821#c0 Summary: grep misdetects /sys files as binary files Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: uwe.menges@sap.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 I use patterns like this: # grep -H . /sys/block/[sv]d*/queue/scheduler # grep . /sys/kernel/mm/ksm/* to get maximum information in minimum number of lines. Unfortunately, this doesn't work with grep of openSUSE 12.2, because there grep treats /sys files as binary files and doesn't give the content as output but just a "Binary file ... matches" line per file. Reproducible: Always Steps to Reproduce: 1. grep . /sys/kernel/mm/ksm/* Actual Results: # grep . /sys/kernel/mm/ksm/* Binary file /sys/kernel/mm/ksm/full_scans matches Binary file /sys/kernel/mm/ksm/pages_shared matches Binary file /sys/kernel/mm/ksm/pages_sharing matches Binary file /sys/kernel/mm/ksm/pages_to_scan matches Binary file /sys/kernel/mm/ksm/pages_unshared matches Binary file /sys/kernel/mm/ksm/pages_volatile matches Binary file /sys/kernel/mm/ksm/run matches Binary file /sys/kernel/mm/ksm/sleep_millisecs matches Expected Results: # grep . /sys/kernel/mm/ksm/* /sys/kernel/mm/ksm/full_scans:0 /sys/kernel/mm/ksm/pages_shared:0 /sys/kernel/mm/ksm/pages_sharing:0 /sys/kernel/mm/ksm/pages_to_scan:100 /sys/kernel/mm/ksm/pages_unshared:0 /sys/kernel/mm/ksm/pages_volatile:0 /sys/kernel/mm/ksm/run:0 /sys/kernel/mm/ksm/sleep_millisecs:20 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.