2009-07-23 09:17:32 Hush shell prompt - 2009R1
Tim Shearer (UNITED STATES)
Message: 77957
Hi,
I am using the 2009R1 branch with a CM-BF537E board. I have just upgraded from msh to hush with much success. At this point, the only problem I have is that the shell prompt doesn't appear to use the PS1 variable. The shell prompt is always "/ #"
I did find a tracker item describing the same problem, but the fix preceeds the date of this branch, so I guess it must have been applied. So, should I be using trunk?
As described in the Wiki, I have fancy shell prompts enabled, and the required /etc/profile file.
blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_id=141&tracker_item_id=5164
Many thanks!
Tim
QuoteReplyEditDelete
2009-07-23 10:03:41 Re: Hush shell prompt - 2009R1
Mike Frysinger (UNITED STATES)
Message: 77962
/etc/profile is board specific, so fixing it for one board (or one vendor) wont fix it for all
QuoteReplyEditDelete
2009-07-23 10:41:03 Re: Hush shell prompt - 2009R1
Tim Shearer (UNITED STATES)
Message: 77967
HI Mike,
I'm not sure I understand. From what you're saying, the way the shell uses /etc/profile depends on the board vendor it was built for?
Just so we're clear, the /etc/profile file is present, and the PS1 variable is correctly exported:
/ # echo $PS1
\u:\w>
Many thanks,
Tim
QuoteReplyEditDelete
2009-07-23 10:50:54 Re: Hush shell prompt - 2009R1
Mike Frysinger (UNITED STATES)
Message: 77969
you must have added it yourself then because it wasnt there until i just added it for the Bluetechnix vendor
did you also change the busybox configuration ? the default Bluetechnix config files do not enable hush.
QuoteReplyEditDelete
2009-07-23 11:12:49 Re: Hush shell prompt - 2009R1
Tim Shearer (UNITED STATES)
Message: 77972
Yes, I added /etc/profile to the root filesystem myself.
I also disabled msh, and enabled hush in the busybox config.
Choose your default shell (hush) --->
[ ] ash
--- hush
[ ] help builtin
[*] Interactive mode
[ ] Job control
[*] Process substitution
[*] Support if/then/elif/else/fi
[*] Support for, while and until loops
[*] Support case ... esac statement
[ ] lash
[ ] msh
--- Bourne Shell Options
[ ] Hide message on interactive shell startup
[ ] cttyhack
Thanks for looking at this for me.
Tim
QuoteReplyEditDelete
2009-07-23 11:45:03 Re: Hush shell prompt - 2009R1
Mike Frysinger (UNITED STATES)
Message: 77974
presumably you enabled support for fancy prompts as well
$ grep FANCY config/.config
CONFIG_USER_BUSYBOX_FEATURE_EDITING_FANCY_PROMPT=y
in the busybox that is in the 2009R1 branch, $PS1 is checked once at startup and that's it. i fixed this is newer versions (i.e. trunk) only. this is why we are releasing 2009R1 with msh as the default -- we need to go through a cycle of testing hush for regressions.
trunk is known to have many hush fixes over 2009R1, so if you want to use hush, you should probably copy the busybox dir from trunk to 2009R1.
QuoteReplyEditDelete
2009-07-23 11:47:54 Re: Hush shell prompt - 2009R1
Tim Shearer (UNITED STATES)
Message: 77975
Yes, fancy prompts is enabled.
I will follow your suggestion, and copy trunk busybox back over to 2009R1.
Thanks a lot,
Tim
QuoteReplyEditDelete
2009-07-27 13:19:45 Re: Hush shell prompt - 2009R1
Tim Shearer (UNITED STATES)
Message: 78100
Just a quick follow-up, I built 2009R1 using busybox from trunk and it fixed the problem.
Thanks,
Tim