From 5abc684b232ef02f7292ead6b5f73bec5b129b90 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 8 Apr 2017 16:33:28 -0700 Subject: [PATCH] Created SC1114 (markdown) --- SC1114.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 SC1114.md diff --git a/SC1114.md b/SC1114.md new file mode 100644 index 0000000..3383ccc --- /dev/null +++ b/SC1114.md @@ -0,0 +1,24 @@ +## Remove leading spaces before the shebang. + +### Problematic code: + +```sh + #!/bin/sh +echo "Hello world" +``` + +### Correct code: + +```sh +#!/bin/sh +echo "Hello World" +``` +### Rationale: + +The script has leading spaces before the shebang (`#!`). This is not allowed. + +The `#!` should be the first two bytes in the file, as they're used as a file signature by the OS to determine whether a file is a script. + +### Exceptions: + +None. \ No newline at end of file