Skip to content

Commit

Permalink
let: add page (#14616)
Browse files Browse the repository at this point in the history
* let: add page

* Update pages/linux/let.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update pages/linux/let.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update pages/linux/let.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update pages/linux/let.md

* add --help example

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
  • Loading branch information
4 people authored Nov 22, 2024
1 parent da2e0ed commit 4df55c6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pages/linux/let.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# let

> Evaluate arithmetic expressions in shell.
> Supports variables, operators, and conditional expressions.
> More information: <https://manned.org/let>.
- Evaluate a simple arithmetic expression:

`let "{{result = a + b}}"`

- Use post-increment and assignment in an expression:

`let "{{x++}}"`

- Use conditional operator in an expression:

`let "{{result = (x > 10) ? x : 0}}"`

- Display help:

`let --help`

0 comments on commit 4df55c6

Please sign in to comment.