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

2010-07-21 Thread Roman Rakus
On 07/11/2010 05:07 AM, Chet Ramey wrote: On 7/10/10 11:00 PM, Peng Yu wrote: On Sat, Jul 10, 2010 at 9:52 PM, Chet Rameychet.ra...@case.edu 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

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

2010-07-21 Thread Chet Ramey
On 7/21/10 7:55 AM, Roman Rakus wrote: I can reproduce it. Of course you can. You asked to see it. [rra...@dhcp-lab-170 tmp]$ mkdir '\E' [rra...@dhcp-lab-170 tmp]$ cd \\E/ ]0;rra...@dhcp-lab-170:~/tmp/ra...@dhcp-lab-170 \E]$ ]0;rra...@dhcp-lab-170:~/tmp/ra...@dhcp-lab-170 \E]$ set -x

words in COMPWORDS vs. words in COMPREPLY

2010-07-21 Thread Ben Pfaff
I'm trying to learn how bash completion works, so that I can write completion functions for some utilities. As an experiment, I wrote the following trivial completion. It is intended to report that the completions for the current word are exactly the contents of the current word: _test () {

Re: access(2) shouldn't be used with test(1)

2010-07-21 Thread Linda Walsh
There are times when adherence to historical bugs is a reminder of the great flaw of the standards process. Broken standards should be fixable That said...um yeah...practicality indicates steering around broken POSIX functionality... Eric Blake wrote: On 07/20/2010 03:22 PM, Garrett

document $MAIL for Maildir users

2010-07-21 Thread jidanni
man page says MAIL If this parameter is set to a file name and the MAILPATH variable is not set, bash informs the user of the arrival of mail in the specified file. OK, but also mention one can set it to a directory. And say that MAIL=$HOME/Maildir/ is what Maildir