Before this fix, colors are disabled in my shell, and NO_COLOR variable is unset.
Fixes a bug introduced in 499781d5dd (#9550)
where the variable is checked to be set, when it should be the opposite.
This is an implementation of [`NO_COLOR`][1] initiative that proposes
single environment variable to prevent using colours in terminal.
[1]: https://no-color.org
This commit adds 6 new options to elixir CLI to aid releases:
* `--pipe-to PIPEDIR LOGDIR` - invokes run_erl with daemon pipe and logs (only on Unix-like systems)
* `--rpc-eval NODE COMMAND` - evaluates the given expression on the given node
* `--boot FILE`, `--boot-var VAR VALUE`, `--erl-config FILE` and `--vm-args FILE` - which are equivalent to Erlang's `-boot`, `-boot_var`, `-config` and `-args_file`
We have also rewritten the CLI to only pass Elixir options to Kernel.CLI.
Erlang parameters (CLI switch '--erl') are used with possible quotes around the argument removed ('%~1').
This causes an error if one arbitrary argument to elixir.bat represents a quoted path with spaces in it:
"[part of path after space] was unexpected at this time."
Enclose the complete expression with quotes to work around this (the quotes are not added to the content).
This behavior is not documented in the [Windows XP Command Line Reference for SET](https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/set.mspx)
but there are other places which document the [SET command](https://ss64.com/nt/set.html).
Fix for #6455
Prior to this patch, both oldshell and IEx would start,
which would make them compete for the standard io. This
could be deterministically triggered by pasting input
with multiple lines on the terminal.
This commit guarantees the oldshell is no longer started.
* Use present continuous in elixirc bin files
* Align descriptions of options in elixirc bin files
* Leave 30 chars to the left
* Options start with 2 white-spaces
* Align descriptions of options in iex bin files
* Options start with 2 white-spaces
* Document --help option in iex command and include long version of --version