Problem with vi mode in bash 5.0 beta

2018-12-12 Thread Stan Marsh
(This is all after doing "set -o vi") In previous versions of bash, I could do the following keys: / ^ foo and it would find the most recent command that starts with foo. This is all as expected. However, in bash 5.0 beta (self-compiled), this doesn't work. It always leaves the cursor line e

Re:

2018-12-12 Thread Valentin Bajrami
Alright, so it seems PS1 is causing the problem. I removed the line from ~/.bashrc file and the shell is behaving normal again. Thanks for pointing that out and apologies for the noise. Kind regards, Valentin On Wed, Dec 12, 2018 at 8:56 PM Valentin Bajrami wrote: > Hi guys and thanks for the

Re:

2018-12-12 Thread Valentin Bajrami
Hi guys and thanks for the quick reply. I think Greg had a good point there mentioning my PS1. I have it slightly modified for my personal needs but this is happening even though I run bash with --norc flag A piece of my ~/.bashrc file is as follows: color_enabled() { local -i colors=$(tput

Re:

2018-12-12 Thread Chet Ramey
On 12/12/18 11:36 AM, Valentin Bajrami wrote: > While playing around a bit with dotglob and nullglob the following testcase > seem to fail when cd'ing to a non existing directory. The shell seems to > hang there and sending a SIGINT isn't having much effect. > > f3d0r4:~$ pwd > /home/valentin.loca

Re: your mail

2018-12-12 Thread Greg Wooledge
On Wed, Dec 12, 2018 at 05:36:26PM +0100, Valentin Bajrami wrote: > f3d0r4:~$ cd ../Nonexistingdir > bash: cd: ../Nonexistingdir: No such file or directory > ^C > ^C > cd Desktop/ > f3d0r4:~/Desktop$ What's in your PS1 and PROMPT_COMMAND variables? Have you set a DEBUG trap? Have you set an E

[no subject]

2018-12-12 Thread Valentin Bajrami
While playing around a bit with dotglob and nullglob the following testcase seem to fail when cd'ing to a non existing directory. The shell seems to hang there and sending a SIGINT isn't having much effect. f3d0r4:~$ pwd /home/valentin.local f3d0r4:~$ shopt -s nullglob dotglob f3d0r4:~$ f=(*) f3d0