update doc for 1.1.0
This commit is contained in:
parent
9608f2556b
commit
af5d276ff0
1 changed files with 11 additions and 8 deletions
19
README.md
19
README.md
|
|
@ -16,11 +16,11 @@ zpkg install lxsh
|
||||||
|
|
||||||
### Binary
|
### Binary
|
||||||
|
|
||||||
Download the `lxsh-linux-amd64.tar.gz` archive, extract it,
|
Download the `lxsh.tar.gz` archive, extract it,
|
||||||
and move the `lxsh` binary in a PATH folder (`/usr/local/bin` is the recommended).
|
and move the `lxsh` binary in a PATH folder (`/usr/local/bin` is the recommended).
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
wget https://github.com/zawwz/lxsh/releases/download/v1.0.0/lxsh-linux-amd64.tar.xz
|
wget https://github.com/zawwz/lxsh/releases/download/v1.1.0/lxsh.tar.gz
|
||||||
tar -xvf lxsh.tar.gz
|
tar -xvf lxsh.tar.gz
|
||||||
sudo mv lxsh /usr/local/bin
|
sudo mv lxsh /usr/local/bin
|
||||||
```
|
```
|
||||||
|
|
@ -56,8 +56,12 @@ use `--exclude-var` to exclude variables from being minified (for example enviro
|
||||||
Function names can be minified with `--minify-fct`,
|
Function names can be minified with `--minify-fct`,
|
||||||
use `--exclude-fct` to exclude functions from being minified.
|
use `--exclude-fct` to exclude functions from being minified.
|
||||||
|
|
||||||
|
Unnecessary quotes can be removed with `--minify-quotes`.
|
||||||
|
|
||||||
Unused functions and variables can be removed with `--remove-unused`.
|
Unused functions and variables can be removed with `--remove-unused`.
|
||||||
|
|
||||||
|
Use `-M` to enable all of these minifying features (you still have to specify `--exclude` options when needed)
|
||||||
|
|
||||||
## Debashify
|
## Debashify
|
||||||
|
|
||||||
Some bash specific features can be translated into POSIX shell code.
|
Some bash specific features can be translated into POSIX shell code.
|
||||||
|
|
@ -116,7 +120,7 @@ these features will continue working with undesired behavior.
|
||||||
|
|
||||||
> To avoid this, make sure to never access incorrect values
|
> To avoid this, make sure to never access incorrect values
|
||||||
|
|
||||||
Array argument with `[@]` does not work with spaces, tabs and newlines in values.
|
Array argument with `[@]` does not expand into the desired multiple arguments.
|
||||||
|
|
||||||
## Other features
|
## Other features
|
||||||
|
|
||||||
|
|
@ -133,11 +137,10 @@ Directly execute an extended lxsh script with either
|
||||||
- `-e` option
|
- `-e` option
|
||||||
- shebang is lxsh
|
- shebang is lxsh
|
||||||
|
|
||||||
> Direct execution introduces direct dependency on lxsh and code generation overhead,
|
> Direct execution introduces direct dependency on lxsh and code parsing overhead,
|
||||||
> therefore it should be avoided outside of development use.
|
> therefore it should be avoided in production environments.
|
||||||
> This may be optimized in a later version
|
|
||||||
|
|
||||||
> There are some issues with direct execution as of now
|
> stdin is known to not work properly on direct execution as of now
|
||||||
|
|
||||||
### Variable/Function/command listing
|
### Variable/Function/command listing
|
||||||
|
|
||||||
|
|
@ -151,7 +154,7 @@ Depends on [ztd](https://github.com/zawwz/ztd)
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
Use `make -j11` to build.<br>
|
Use `make -j13` to build.<br>
|
||||||
You can use environment variables to alter some aspects:
|
You can use environment variables to alter some aspects:
|
||||||
- DEBUG: when set to `true` will generate a debug binary with profiling
|
- DEBUG: when set to `true` will generate a debug binary with profiling
|
||||||
- RELEASE: when set to `true`, the version string will be generated for release format
|
- RELEASE: when set to `true`, the version string will be generated for release format
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue