https://bugzilla.novell.com/show_bug.cgi?id=733154
https://bugzilla.novell.com/show_bug.cgi?id=733154#c0
Summary: kernel should warn about BOM on shell scripts, instead
of resorting to /bin/sh
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
AssignedTo: kernel-maintainers@forge.provo.novell.com
ReportedBy: jw@suse.com
QAContact: qa@suse.de
Found By: ---
Blocker: ---
Created an attachment (id=464390)
--> (http://bugzilla.novell.com/attachment.cgi?id=464390)
hello_utf8 perl script.
A shell script is a text file, and thus is likeely to contain an UTF-8 BOM when
(e.g. a comment) contains UTF-8
$ ~/bin/hello_utf8
/suse/jw/bin/hello_utf8: line 1: #!/usr/bin/perl: No such file or directory
/suse/jw/bin/hello_utf8: line 8: my: command not found
Hello UTF-8 (Version )
,
$ perl ~/bin/hello_utf8
Hello UTF-8 (Version 0.1)
$ xxd ~/bin/hello_utf8
0000000: efbb bf23 212f 7573 722f 6269 6e2f 7065 ...#!/usr/bin/pe
0000010: 726c 0a23 0a23 2028 6329 2032 3031 3120 rl.#.# (c) 2011
0000020: 3c6a 7740 7375 7365 2e64 653e 204a c3bc