Hello,

When I try to setup a HISTFILE to something different from /root/.ash_xxxx it 
creates a weird file under / which is the history file.

For instance, easy to reproduce:

$ docker run -it --rm busybox sh
/ # busybox --help | grep ^BusyBox
BusyBox v1.33.0 (2020-12-29 22:13:53 UTC) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
/ # ls
bin   dev   etc   home  proc  root  sys   tmp   usr   var
/ # HISTFILE=/tmp/foo
/ # ls
bin   dev   etc   home  proc  root  sys   tmp   usr   var   w??
/ # cat w*
ls
/ #


In fact I tried to disable history by setting HISTFILE=/dev/null and noticed this behavior (it was in a alpine image which is using busybox ash as shell script).
I have checked the source file but did not see obvious problem.

Thanks for your support.

Kind regards.

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

Reply via email to