readline vs. literal \1 and \2

2007-04-04 Thread Eric Blake
A readline question recently came up on the cygwin list. The root cause of the problem is that the cmd.com terminal accepts the sequence "\001" as a printing character for a hollow smiley face, and the sequence "\002" as a solid smiley face. But readline is also documented as using \1 and \2 a

RE: type -p return status is 0 if alias found

2007-04-04 Thread John.Wiersba
Thanks for your reply, Mike! Here's what I'm reading in the man page: type [-aftpP] name [name ...] With no options, indicate how each name would be interpreted if used as a command name. If the -t option is used, type prints a string which is one of alias, keyword, funct

Re: type -p return status is 0 if alias found

2007-04-04 Thread Mike Frysinger
On Tuesday 03 April 2007, [EMAIL PROTECTED] wrote: >"type -p CMD" normally has a non-zero return status if CMD is not > found. But if CMD is an alias, the return status is zero even though > nothing is printed to stdout. by definition, this is how -p is supposed to work ... my guess is you wa

type -p return status is 0 if alias found

2007-04-04 Thread John.Wiersba
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DS

Re: inconsistent output for cd

2007-04-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Tony Balinski on 4/3/2007 11:49 AM: > > Running bash on Cygwin (taken from Cygwin): ... > Curiously, under the same conditions on a Red Hat Linux box: Why didn't you say so in the first place? If this behavior only occurs on cygwin, the