Re: feature request (complete)

2010-07-10 Thread Chet Ramey
> > How about giving programmable completion a new hook that allows the > > user/compspec author to display the completions? That is a general > > solution. > > > > I thought only about $COMPREPLY because it's what I was using and > thought it would be just a quick & dirty hack. Of course a hoo

How to input tab in command line?

2010-07-10 Thread Peng Yu
Hi, I have command completion in my bash command. But I need to input tab in the command line. Is there a way to do so? -- Regards, Peng

How to show path with backslash '\' in it in the prompt?

2010-07-10 Thread Peng Yu
Hi, I have a directory named '\E' (two letters, rather than a single special character). I have the following $PS1 variable. $ echo $PS1 ${debian_chroot:+($debian_chroot)}...@\h:\w\$ When my current directory is '\E', the prompt shows a special character (I think that it should be the special ch

Re: How to input tab in command line?

2010-07-10 Thread John Reiser
> I have command completion in my bash command. But I need to input tab > in the command line. Is there a way to do so? Quote the with V. $ echo ' ' | od -c # e c h o V 000 \t \n 002 $ echo '' | od -c # e c h o 000 \n 001 $ --

Re: How to show path with backslash '\' in it in the prompt?

2010-07-10 Thread Chet Ramey
On 7/10/10 9:57 PM, Peng Yu wrote: > Hi, > > I have a directory named '\E' (two letters, rather than a single > special character). I have the following $PS1 variable. > > $ echo $PS1 > ${debian_chroot:+($debian_chroot)}...@\h:\w\$ > > When my current directory is '\E', the prompt shows a specia

Re: How to show path with backslash '\' in it in the prompt?

2010-07-10 Thread Peng Yu
On Sat, Jul 10, 2010 at 9:52 PM, Chet Ramey wrote: > On 7/10/10 9:57 PM, Peng Yu wrote: >> Hi, >> >> I have a directory named '\E' (two letters, rather than a single >> special character). I have the following $PS1 variable. >> >> $ echo $PS1 >> ${debian_chroot:+($debian_chroot)}...@\h:\w\$ >> >>

Re: How to show path with backslash '\' in it in the prompt?

2010-07-10 Thread Peng Yu
On Sat, Jul 10, 2010 at 10:00 PM, Peng Yu wrote: > On Sat, Jul 10, 2010 at 9:52 PM, Chet Ramey wrote: >> On 7/10/10 9:57 PM, Peng Yu wrote: >>> Hi, >>> >>> I have a directory named '\E' (two letters, rather than a single >>> special character). I have the following $PS1 variable. >>> >>> $ echo $

Re: How to show path with backslash '\' in it in the prompt?

2010-07-10 Thread Chet Ramey
On 7/10/10 11:00 PM, Peng Yu wrote: > On Sat, Jul 10, 2010 at 9:52 PM, Chet Ramey wrote: >> On 7/10/10 9:57 PM, Peng Yu wrote: >>> Hi, >>> >>> I have a directory named '\E' (two letters, rather than a single >>> special character). I have the following $PS1 variable. >>> >>> $ echo $PS1 >>> ${debi