apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
264 stars 490 forks source link

apps/nsh_commands: Use quit to poweroff #2355

Closed acassis closed 3 months ago

acassis commented 3 months ago

Summary

Currently new users when try to run NuttX using the SIM get stuck into simulator, because they have no idea that poweroff command is used to leave it. Let use KISS approach and use quit as alias to poweroff command.

Impact

Make it easier to user to leave SIM

Testing

sim

cederom commented 3 months ago

Unix uses exit rather than quit can we change that to exit ?

Also it would be nice to configure exit behavior to be poweroff or reboot..?

acassis commented 3 months ago

I tried to use "exit", but exit is already used internally to exit from nsh or telnet, where poweroff is used to turn-off the board