Chet Ramey wrote:
On 5/31/12 3:56 PM, Linda Walsh wrote:
if I type in a path:

(1st example)
ls -d /share/doc/new<tab>, bash displays:
ls /share/doc/New\ Folder

Pressing 'Enter' gets:

ls: cannot access /share/doc/New Folder: No such file or directory

vs.

(2nd example)
ls /share/do<tab>
ls /share/Doc/n<tab>
ls /share/Doc/New\ Folder/  (<enter>)
/share/Doc/New Folder//
Let me fill in some of the missing pieces so this makes sense to everyone.
I'll make some assumptions because you don't say anything about the version
of bash you're using.
----
        Sorry,
 bash --version
GNU bash, version 4.2.10(1)-release (x86_64-suse-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


You have enabled the `dirspell' shell option, which causes the directory
rewrite part of completion to perform spelling correction like the cd
builtin.

You don't have the `direxpand' shell option enabled, which would have
replaced the directory name with the corrected version.
shopt
autocd          on
cdable_vars     on
cdspell         on
checkhash       on
checkjobs       off
checkwinsize    on
cmdhist         on
compat31        off
compat32        off
compat40        off
compat41        off
dirspell        on
dotglob         on
execfail        off
expand_aliases  on
extdebug        off
extglob         on
extquote        on
failglob        off
force_fignore   on
globstar        on
gnu_errfmt      off
histappend      on
histreedit      on
histverify      on
hostcomplete    on
huponexit       off
interactive_comments    on
lastpipe        off
lithist         on
login_shell     on
mailwarn        off
no_empty_cmd_completion on
nocaseglob      on
nocasematch     on
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        on

-----
I've never seen a direxpand...  where do I set it?
---
Is there a similar command to list out my inputrc commands? (other than dumping the .inputrc? (it's sorta messy, but I don't see a direxpand there either)...
Shouldn't I see a direxpand option above and see it set to off?

Thanks,
linda

Reply via email to