I don't know whether this patch is of any interest, except for me.

Signed-off-by: Arnaud Rébillout <[email protected]>
---
 libbb/lineedit.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 52b49e8..536a98c 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1802,6 +1802,9 @@ static void parse_and_put_prompt(const char *prmt_ptr)
                                        pbuf = user_buf ? user_buf : (char*)"";
                                        break;
 # endif
+                               case 'H':
+                                       pbuf = free_me = safe_gethostname();
+                                       break;
                                case 'h':
                                        pbuf = free_me = safe_gethostname();
                                        *strchrnul(pbuf, '.') = '\0';
-- 
1.7.10.4

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to