Re: bash / word seperators

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 6:17 PM +1000 5/10/06, Cameron Simpson wrote:
>On 09May2006 22:22, Tony Nelson <tonynelson@xxxxxxxxxxxxxxxxx> wrote:
>| >| Man bash shows "COMP_WORDBREAKS" as the relevent variable to set.  (Don't
>| >| unset it.)  See "man bash", and search for "readline".  So:
>| >|     COMP_WORDBREAKS=$COMP_WORDBREAKS/
>| >| does it.  To have it every time, put that line in ~/.bashrc.
>| >
>| >Seems to have no effect for me. I'm testing with bash-3.0 on Fedora Core
>| >4. Should I expect this to affect ^W? One reason I prefer zsh is that
>| >it will stop ^W at a slash, which I find very useful.
>|
>| Don't know.  It affects Ctrl-Left Arrow here.  I don't use Ctrl-W.
>| Have you printed COMP_WORDBREAKS to make sure it's set properly?
>
>Yep:
>
>	[~]zoob*> echo $COMP_WORDBREAKS
>	"'@><=;|&(:/
>
>Control left-arrow seems to do nothing at all for me.

Are you using gnome-terminal or are you in a console or what?  In a
console, use M-b (ESC-b).

I was rather confused about COMP_WORDBREAKS, and I now see that it only
applies to Readline's Programmable Completion.  You don't need to change it
for what you want to do.

Man bash shows that C-w is bound by default to unix-word-rubout, which uses
whitespace as the delimiter, not COMP_WORDBREAKS.  You may wish to bind C-w
to unix-filename-rubout instead, or switch to using M-Rubout
(ESC-Backspace).  See man bash.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux