Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minour she bang issue (#! /bin/path/to/wrenc) not working properly #142

Open
aosenkidu opened this issue Feb 25, 2023 · 0 comments
Open

Comments

@aosenkidu
Copy link

Idunn2:she_bang_bug angelos$ pwd
/Users/angelos/development/kestrel-devel/she_bang_bug

I made two "shell scripts" - well, I probably should not have them end in .sh, but that does not matter for this showcase.

Idunn2:she_bang_bug angelos$ ls
she_bank_not_working_correctly.sh       this_works.sh

Contents of the files:

Idunn2:she_bang_bug angelos$ cat she_bank_not_working_correctly.sh 
#! /Users/angelos/development/kestrel-console/wren-console/bin/wrenc
System.print("This line is never executed, as wrenc does not like the *space* character")

Note the " " after the "!". Historically we would write that space character, see the other file:

Idunn2:she_bang_bug angelos$ cat this_works.sh 
#!/Users/angelos/development/kestrel-console/wren-console/bin/wrenc
System.print("This works now, as I deleted the *space* character")

/* historically we used to have a space after she bang 
So every "script" starts with the same 4 letters: "#! /", aka with the same 32bit "magic number".
Ofc this is not a serious bug. But a minour inconvenience.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant