| Anonymous | Login | Signup for a new account | 11-10-2008 10:49 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000404 | [BusyBox] Other | minor | always | 08-26-05 23:51 | 09-05-05 09:36 | ||||
| Reporter | Charles | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 1.00 | ||||||
| Summary | 0000404: Miscalculation of prompt length in command-line editing | ||||||||
| Description |
The length of prompt is mis-calcluated when command-line prompt string contains pairs of '\[' and '\]' characters. For example, setting PS1 to '\[\033]0;\u@\h:\w\007\][\u@\h \w]\$ ' will cause problems in command-line editing when the commands entered are long enough. |
||||||||
| Additional Information |
It seems that the cause of the problems is the codes near the end of function parse_prompt() in file shell/cmdedit.c (when CONFIG_FEATURE_SH_FANCY_PROMPT is defined). The code fragments ... if (flg_not_length == ']') sub_len++; ... should be replaced with ... if (flg_not_length == ']') sub_len += strlen(pbuf); ... Please confirm this bug and have it fixed. |
||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |