[Bug 789013] New: bug during script execution
https://bugzilla.novell.com/show_bug.cgi?id=789013 https://bugzilla.novell.com/show_bug.cgi?id=789013#c0 Summary: bug during script execution Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: PC OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: comes@naic.edu QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 run: lsinitrd /boot/initrd | grep libz output (correct): lib64/libz.so.1.2.7 lib64/libz.so.1 but run (add option -q to grep): lsinitrd /boot/initrd | grep -q libz output (bug): xz: /boot/initrd: File format not recognized Another way to see the same bug is: run: if gzip -dc /boot/initrd ; then true-$? >&2 ; else echo false-$? >&2 ; fi | cpio --quiet -t | grep libz output (correct): lib64/libz.so.1.2.7 lib64/libz.so.1 true-0 run (add option -q to grep): if gzip -dc /boot/initrd ; then true-$? >&2 ; else echo false-$? >&2 ; fi | cpio --quiet -t | grep -q libz output (bug): false-141 Reproducible: Always Steps to Reproduce: 1.run: lsinitrd /boot/initrd | grep -q libz 2. 3. Actual Results: you get the wrong output: xz: /boot/initrd: File format not recognized Expected Results: no output -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=789013 https://bugzilla.novell.com/show_bug.cgi?id=789013#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |mmarek@suse.com |ovo.novell.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=789013 https://bugzilla.novell.com/show_bug.cgi?id=789013#c1 Michal Marek <mmarek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Michal Marek <mmarek@suse.com> 2013-10-22 12:11:44 UTC --- grep -q closes stdin upon the first match and gzip receives a SIGPIPE. The script in 12.3 uses file(1) to determine the compression, instead of trying gzip and checking the exit code. -- 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.
participants (1)
-
bugzilla_noreply@novell.com