From 92129d6dd2225fe78174db8be24fd0ad2cd38155 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Tue, 16 Aug 2011 15:11:56 +0200 Subject: Document use of -noshell -noinput in emu_opts --- bootstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 15fe60a..11c2f56 100755 --- a/bootstrap +++ b/bootstrap @@ -59,7 +59,9 @@ main(Args) -> case zip:create("mem", Files, [memory]) of {ok, {"mem", ZipBin}} -> %% Archive was successfully created. Prefix that binary with our - %% header and write to "rebar" file + %% header and write to "rebar" file. + %% Without -noshell -noinput escript consumes all input that would + %% otherwise go to the shell for the next command. Script = <<"#!/usr/bin/env escript\n%%! -noshell -noinput\n", ZipBin/binary>>, case file:write_file("rebar", Script) of ok -> -- cgit v1.1