diff options
author | Fredrik Gustafsson <[email protected]> | 2013-01-17 11:58:28 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-01-17 11:58:28 +0100 |
commit | cc7e26049cae8cb95793cf9af98424907a2ce644 (patch) | |
tree | 3b79682fcd50dd9284ae66c9fd9eb16442e0c5d6 /erts/etc/common/escript.c | |
parent | 3bfdf85c503df603920f7a4b77ccb2a2dc438455 (diff) | |
parent | 3f74aa2f7a1ef3703d749edae627cb3766d40434 (diff) | |
download | otp-cc7e26049cae8cb95793cf9af98424907a2ce644.tar.gz otp-cc7e26049cae8cb95793cf9af98424907a2ce644.tar.bz2 otp-cc7e26049cae8cb95793cf9af98424907a2ce644.zip |
Merge branch 'mh/escript_emulator_flags_vs_shebang/OTP-10691'
* mh/escript_emulator_flags_vs_shebang/OTP-10691:
escript to accept emulator arguments when script file has no shebang
Diffstat (limited to 'erts/etc/common/escript.c')
-rw-r--r-- | erts/etc/common/escript.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/escript.c b/erts/etc/common/escript.c index 9e80ec6656..3566406bf3 100644 --- a/erts/etc/common/escript.c +++ b/erts/etc/common/escript.c @@ -264,7 +264,7 @@ append_shebang_args(char* scriptname) static char linebuf[LINEBUFSZ]; char* ptr = fgets(linebuf, LINEBUFSZ, fd); - if (ptr != NULL && linebuf[0] == '#' && linebuf[1] == '!') { + if (ptr != NULL) { /* Try to find args on second or third line */ ptr = fgets(linebuf, LINEBUFSZ, fd); if (ptr != NULL && linebuf[0] == '%' && linebuf[1] == '%' && linebuf[2] == '!') { |