aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_webtool.erl
diff options
context:
space:
mode:
authorJing Peng <[email protected]>2016-12-09 21:42:45 -0500
committerJing Peng <[email protected]>2016-12-13 21:09:38 -0500
commite348250942a3d3fe1c96a6f2e1bfac9b442c9585 (patch)
tree35e99520f27100fe78751358cfb482caec7dade8 /lib/common_test/src/ct_webtool.erl
parentb47d104994c6f11301f23b0675ed5f06f3e25922 (diff)
downloadotp-e348250942a3d3fe1c96a6f2e1bfac9b442c9585.tar.gz
otp-e348250942a3d3fe1c96a6f2e1bfac9b442c9585.tar.bz2
otp-e348250942a3d3fe1c96a6f2e1bfac9b442c9585.zip
Allow escripts with only two lines
The current implementation assumes that escripts all have at least three lines. But according to the escript documentation, comments on the second line and emulator flags on the third line are all optional. Thus escripts with only two lines -- shebang on the first line and code on the second line -- will not run. This commit fixes the problem by rearranging the escript header parsing logic, and recognize the escript body on the second line if the header only contains a line of shebang.
Diffstat (limited to 'lib/common_test/src/ct_webtool.erl')
0 files changed, 0 insertions, 0 deletions