Re: cd won't change the prompt if the command is typed in the vi editor (vi mode).

2013-05-13 Thread Chet Ramey
On 5/12/13 6:50 PM, Peng Yu wrote: > Hi, > > I have vi mode set. > > set -o vi. > > Then I type v to enter the vi editor. In the vi editor, I type 'cd > /tmp'. Then, I get the following screen output. Notice that the prompt > does not change immediately after the cd command. Could anybody > repr

Re: cd won't change the prompt if the command is typed in the vi editor (vi mode).

2013-05-13 Thread Greg Wooledge
On Sun, May 12, 2013 at 05:50:18PM -0500, Peng Yu wrote: > set -o vi. > > Then I type v to enter the vi editor. In the vi editor, I type 'cd > /tmp'. Then, I get the following screen output. Notice that the prompt > does not change immediately after the cd command. Could anybody > reproduce this b

cd won't change the prompt if the command is typed in the vi editor (vi mode).

2013-05-12 Thread Peng Yu
Hi, I have vi mode set. set -o vi. Then I type v to enter the vi editor. In the vi editor, I type 'cd /tmp'. Then, I get the following screen output. Notice that the prompt does not change immediately after the cd command. Could anybody reproduce this behavior? Thanks. ~$ cd /tmp ~$ echo $PWD /