Extended shell linker
Find a file
2020-09-02 11:00:53 +02:00
include Add basic arithmetic parse 2020-09-02 10:33:34 +02:00
src Add basic arithmetic parse 2020-09-02 10:33:34 +02:00
.gitignore Extend options 2020-08-28 14:46:42 +02:00
LICENSE Initial commit 2020-08-28 10:46:02 +02:00
Makefile Improve parsing errors 2020-09-01 17:11:21 +02:00
README.md Basic readme 2020-09-02 11:00:53 +02:00

lxsh

Extended shell linker for linking and generating shell code

Features

Command extensions

lxsh implements special linking commands that are resolved at linking. These commands can be placed anywhere within the script like regular commands.

  • %include : allows to insert file contents
  • %resolve : allows to execute a shell command and insert its output

See lxsh --help-commands for more details

Other features

Live execution

Execute an extended shell script directly with the -e option.

Minimize code

Reduce code size to minimum without changing functionality with the -m option.

Work in progress

lxsh should currently fully support POSIX syntax.
A POSIX shell script should give a working output.

Some specific features are missing:

  • link commands inside arithmetics ($(())) are not resolved
  • link commands placed on the same line as keywords if, then, elif, else, for, while, do or done are not resolved