[Bug 8956] New: Sh outputs an extra command sequence

bugzilla at busybox.net bugzilla at busybox.net
Fri May 20 17:31:53 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=8956

            Bug ID: 8956
           Summary: Sh outputs an extra command sequence
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Website
          Assignee: unassigned at busybox.net
          Reporter: icetritlo at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Greetings,

When I run sh with the parameters

exec env ENV='' HISTFILE=/dev/null PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3=''
/bin/sh

instead of getting back the expected "#$ ", I get "#$ [6n" i.e. the control
character "^[[6n" is appended to the output. This causes issues when using
tramp and sh to edit files on busybox via emacs, since it tries to match the
output with "#$ ". When the same is run on other shells (such as bash), the
control character is not present.

This bug was discovered in alpine linux version 3.3.3, for which a docker
container can be run via "docker run -it --rm --name alpine alpine sh", which
will start the busybox shell.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list