On 02.04.2015 10:34, Harald Becker wrote:
I don't know how to fix this.

Suggesting:

adding an extra parameter to read_line_input()

read_line_input(..., char *cwd_buf, ...)

propagating this to parse_and_put_prompt()
(removing the local variable of same name)

parse_and_put_prompt(..., char *cwd_buf)


Then calling in ash:

read_line_input(..., cdopt() ? physdir : curdir, ...)

... and at other locations, giving save function as now:

read_line_input(..., NULL, ...)


That should do the job, as expected.

--
Harald


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to