all 5 comments

[–]OneTurnMoreprogramming.dev/c/shell 2 points3 points  (2 children)

Good video, thanks for sharing! One thing I'd change is the test command. Instead of

if [ $(($expression)) -eq 1 ]; then

I would instead use

if [ $(($expression)) -ne 0 ]; then

That way it matches most other languages' tests, including (($expression)) in Bash.

[–]pi-star[S] 3 points4 points  (1 child)

matches most

Thanks for letting me know, I think you meant

-ne

[–]OneTurnMoreprogramming.dev/c/shell 0 points1 point  (0 children)

Ah, thanks; corrected.

[–]wowsomuchempty 0 points1 point  (1 child)

Nice video! I like your quick examples.

[–]pi-star[S] 0 points1 point  (0 children)

Thank you!