Re: `complete -d cd' does not work for dirs with a ' char

2014-04-27 Thread Clark Wang
On Sat, Apr 26, 2014 at 3:41 AM, Chet Ramey wrote: > On 4/23/14, 11:21 PM, Clark Wang wrote: > > See following example with bash-4.3.11: > > > > [STEP 101] $ mkdir -p "foo's dir/dir1/dir2" > > [STEP 102] $ complete -d cd > > [STEP 103] $ cd > > [STEP 103] $ cd foo\'s\ dir/ > > > > The 1st worke

Re: `complete -d cd' does not work for dirs with a ' char

2014-04-25 Thread Chet Ramey
On 4/23/14, 11:21 PM, Clark Wang wrote: > See following example with bash-4.3.11: > > [STEP 101] $ mkdir -p "foo's dir/dir1/dir2" > [STEP 102] $ complete -d cd > [STEP 103] $ cd > [STEP 103] $ cd foo\'s\ dir/ > > The 1st worked fine but the 2nd failed to work. Bash 4.2.47 and 4.1.9 > behaved th

`complete -d cd' does not work for dirs with a ' char

2014-04-23 Thread Clark Wang
See following example with bash-4.3.11: [STEP 101] $ mkdir -p "foo's dir/dir1/dir2" [STEP 102] $ complete -d cd [STEP 103] $ cd [STEP 103] $ cd foo\'s\ dir/ The 1st worked fine but the 2nd failed to work. Bash 4.2.47 and 4.1.9 behaved the same. -clark