Shell provides a variety of statements and expressions. Most of these will be familiar to developers who have programmed in Java script, C, C++, C#.
Expressions gives you all the power of Shell, but is using a simplified syntax that's easier to learn if you're a beginner, and makes you more productive if you're an expert.
To use expressions, you write them by using proper syntax. Syntax is the set of rules by which the words and symbols in an expression are correctly combined. Initially, expressions in Shell are a little bit hard to read. But with a good understanding of expression syntax and a little practice, it becomes much easier.
- Expressions is non-case sensitive
- Expressions (variables and functions) start with @
- blocks are enclosed in @( ... )
- Strings are enclosed with quotation marks or single quotation marks
This page is open source.
Noticed a typo? Or something unclear?
Improve this page on GitHub