https://github.com/freedomben/lash
lash (lazy bash) is a very simple language that compiles into bash
https://github.com/freedomben/lash
Last synced: 4 months ago
JSON representation
lash (lazy bash) is a very simple language that compiles into bash
- Host: GitHub
- URL: https://github.com/freedomben/lash
- Owner: FreedomBen
- License: gpl-2.0
- Created: 2014-11-07T17:29:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-07T19:05:39.000Z (over 11 years ago)
- Last Synced: 2025-04-22T22:00:45.923Z (about 1 year ago)
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
lash
====
(Note: This product does not yet exist)
lash (lazy bash) is a very simple language that compiles into bash
`lash` is a superset of `bash` (meaning all valid `bash` is also valid `lash`) that allows you to lazily write `bash` without running into the common pitfalls and annoyances of `bash`. It also adds alternate syntax for common `bash` patterns that makes things simpler.
`lash` compiles into pure `bash`, so you can distribute your script as `bash` without fear of a dependency on the `lash` compiler.
`lash` also offers some simple features like bash compression to reduce filesize (the compression eliminates whitespace by adding lots of semicolons and not importing the comments from `lash`)
Examples:
In `bash` you can't have spaces around the `=` sign:
var = 'some val' # Bad
var='some val' # Good
In `lash` you can:
var = 'some val' # Bad
var='some val' # Good
In `bash` you must dereference variables by prefixing a `$`
eval val # Bad - Runs the command "val" which is not what you want
eval $val # Good - Runs the command stored in val
More to come...