phyver / GameShell

a game to learn (or teach) how to use standard commands in a Unix shell
GNU General Public License v3.0
2.17k stars 138 forks source link

error codes for `gsh` commands #28

Open phyver opened 3 years ago

phyver commented 3 years ago

It would be nice if gsh commands returned a value: 0 for OK, or some error code.

The problem is that gsh check will also do a clean and an init.

One possibility would be to have different function used different bits in the return value:

We'll have one last bit to use for something else!

phyver commented 3 years ago

Simpler solution: