Thanks to a few contributions, I got around to releasing another preview of ABS, the dynamic and modern language for shell scripting.
First and foremost: a huge thank you to nicerobot and ntwrick who managed to take a crack at some of the pain points I didn’t manage to have a look at myself — their contributions added some interesting features to the language and I can only hope they’ll keep coming!
Let’s now run throgh the most notable changes in this new release.
Features
The most important “feature” of this release is the ability, for ABS, to help you locate parsing and execution errors by pin-pointing the code that causes the error, including the line and column number:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
You can now also access command line flags passed to your script
with the flag(...)
function:
1 2 3 4 5 6 7 8 9 10 |
|
Other small additions:
- both single (
'hello'
) and double ("hello"
) quotes are supported in strings, allowing for an easier syntax when you need quotes in your string ("She said 'hello!'"
) - added
"string".is_number()
- ABS will now output its version when called with the
--version
argument alone (abs --version
)
Bugfixes
- shell commands wouldn’t receive the stdin passed to the abs interpreter
- you could not loop more than once over an array when using the
for ... in
syntax
What are you waiting for?
Grab the latest release for your platform, dump it in your path and start hacking with ABS!
If you’re brave enough, just:
1
|
|
Adios!