acassis commented on code in PR #3552:
URL: https://github.com/apache/nuttx-apps/pull/3552#discussion_r3442049362


##########
nshlib/Kconfig:
##########
@@ -69,6 +69,24 @@ config NSH_PROMPT_STRING
                Provide the shell prompt string with size limit NSH_PROMPT_MAX.
                default is "nsh> ".
 
+config NSH_PROMPT_STRING_ROOT
+       string "Prompt string for effective root (euid=0)"
+       default ""
+       depends on SCHED_USER_IDENTITY
+       ---help---
+               If non-empty, NSH uses this prompt when the effective UID is 
zero.
+               If empty, the prompt from NSH_PROMPT_STRING (or ENV/HOSTNAME) 
is used.
+               Set explicitly for multi-user shells (for example, "nsh# ").
+
+config NSH_PROMPT_STRING_USER
+       string "Prompt string for non-root effective UID"
+       default ""

Review Comment:
   True, it will require another flag just to add the default values, so I 
think the current solution is fine!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to