https://bugzilla.novell.com/show_bug.cgi?id=800607 https://bugzilla.novell.com/show_bug.cgi?id=800607#c0 Summary: system scripts should be scan'ed for bashims, and have 1st line update to bash if used Classification: openSUSE Product: openSUSE Factory Version: 12.3 Beta 1 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse@tlinx.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/13.6.28 Many system scripts (400) by one user's count have "bashisms" in them. However, the vast majority of them have #!/bin/sh at the top. Bash claims that it will operate in Posix conformance mode when it is started as /bin/sh, which -- doesn't appear to be happening, but, if fixed, or if the user uses another shell as the POSIX shell replacement (/bin/sh), many scripts may fail unpredictably. Scripts should be scanned at build time for bashism's, and the top line updated to reflect that the script requires/expects to be run with #!/bin/bash if such are included. Reproducible: Always Steps to Reproduce: 1. example - cron-job script for logrotate uses PIPE ARRAY variable. 2. 3. Actual Results: Script usage doesn't match top-line listed interpreter Expected Results: expect that top line would indicate it needs bash if the script includes bashisms. -- 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.