]> git.baikalelectronics.ru Git - uboot.git/commit
common: Fix autocompletion with CONFIG_CMDLINE_PS_SUPPORT
authorMarek Vasut <marex@denx.de>
Wed, 26 Jun 2019 22:17:27 +0000 (00:17 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:25 +0000 (11:31 -0400)
commit5304e1f84851f1d819b2b60b18ea586d5b74d63f
treea3c9312841756f7caea73b7abdfa129c99709b40
parent3b5da347a570771a95db90ce6cd21e1aabd484a1
common: Fix autocompletion with CONFIG_CMDLINE_PS_SUPPORT

The autocompletion did not work if CONFIG_CMDLINE_PS_SUPPORT was enabled
because U-Boot was comparing the prompt string with CONFIG_SYS_PROMPT .
While this works if CONFIG_CMDLINE_PS_SUPPORT is disabled, this no longer
works if it's enabled because user can override the PS1 . Fix this by
checking prompt string against the current PS1 value.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
common/command.c