Tomas-M / linux-live

Linux Live Kit
http://www.linux-live.org/
1.01k stars 253 forks source link

Make user know if he/she has entered an alien command #199

Closed tree-t closed 2 years ago

tree-t commented 2 years ago

Hello Tomas, I found, that while using slax(command) if I enter a command like: slax mount 01-core.sb then nothing is printed and for new users it can be confusing, hence I have made some changes so if he/she uses an alien command, then he will be treated with the usage.

Tomas-M commented 2 years ago

I agree to include this check, but I would prefer to use single square bracket syntax, I know it is longer but somewhat more generally portable, as far as I know

Tomas-M commented 2 years ago

Actually I did it in a different way. Pull repo to see

tree-t commented 2 years ago

Hello Tomas, Although I don't know how to pull a repo, I see that your changes are more precise, and out of the box better ( for the single square bracket, in my code, I have merged multiple if statements, so double square brackets are mandatory). Thanks for making usage of slax(command) easier. :)