public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Levy, Bruce" <blevy@qualcomm.com>
To: <cygwin@cygwin.com>
Subject: RE: completion-ignore-case problem with cygwin
Date: Thu, 14 Sep 2006 22:40:00 -0000	[thread overview]
Message-ID: <C7A98C6EB85FFF4FAE03BD695D68EC7612182E@NAEX05.na.qualcomm.com> (raw)
In-Reply-To: <Pine.GSO.4.63.0609141736340.7074@access1.cims.nyu.edu>

Hi Igor,

Thank you very much for your reply.

I invoked 'bash -vx --login -i' and watched the commands that were being
executed.  I did NOT see any reference to completion-ignore-case.
Should I see the lines in .inputrc being executed?  I did not see any
.inputrc output.

From my bash shell I ran bind 'set completion-ignore-case on' and that
worked perfectly.  I then tried putting that line into .bashrc and that
also worked.  So, I have a workaround, but I'm not sure why .inputrc is
not invoked.

Anyway, I sure appreciate your help.


Best Wishes,
Bruce

-----Original Message-----
From: Igor Peshansky [mailto:pechtcha@cs.nyu.edu] 
Sent: Thursday, September 14, 2006 2:41 PM
To: Levy, Bruce
Cc: cygwin@cygwin.com
Subject: Re: completion-ignore-case problem with cygwin

On Thu, 14 Sep 2006, Bruce Levy wrote:

> Hi,
> I am using version 1.5.21-2 of cygwin with version 5.1-5 of readline.
>
> I have the following lines in ~/.inputrc:
>
> set completion-ignore-case on
> set show-all-if-ambiguous on
>
> set bell-style none
>
> # to show all characters
> set meta-flag on
> set input-meta on
> set convert-meta off
> set output-meta on
>
> and ~/.bashrc contains the following line:
>
> shopt -s nocaseglob
>
>
> In my home directory, I have a directory called Saved.  I type s<TAB>
> (lower case s followed by the TAB character), but I do NOT get any
> filename completion.
>  If I type S<TAB> (upper case S followed bgy the TAB character), I do
> get filename completion.
>
> It seems that even though I have set completion-ignore-case on, it
> remains off.
>
> I enter the following command:
>
> $ bind -V | grep completion
> completion-ignore-case is set to `off'
> disable-completion is set to `off'
> page-completions is set to `on'
> print-completions-horizontally is set to `off'
> completion-query-items is set to `100'
>
> Please notice that completion-ignore-case is set to off!  I can
execute
> the following commands that seems to prove that I am unable to turn on
> completion-ignore-case.

Yes, it definitely seems to be turned off.  Are you sure your ~/.inputrc
gets read?  Is your HOME variable set correctly?

> $ set completion-ignore-case on

This will not do what you expect.  You want

bind 'set completion-ignore-case on'

> $ bind -v | grep ignore-case
> set completion-ignore-case off
>
> Why am I unable to set completion-ignore-case?  What am I doing wrong?

Try running 'bash -vx --login -i' to see what commands are executed when
you run a login shell.  Perhaps there is a startup script somewhere that
executes the bind command to turn completion-ignore-case off.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu |
igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name
changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends
compte."
"But no -- you are no fool; you call yourself a fool, there's proof
enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2006-09-14 22:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 20:50 Bruce Levy
2006-09-14 21:41 ` Igor Peshansky
2006-09-14 22:40   ` Levy, Bruce [this message]
2006-09-15 11:11     ` Carlo Florendo
2006-09-15 11:44     ` Eric Blake
2006-09-15 19:44       ` Levy, Bruce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C7A98C6EB85FFF4FAE03BD695D68EC7612182E@NAEX05.na.qualcomm.com \
    --to=blevy@qualcomm.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).