bug-bash
[Top][All Lists]
Advanced

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

character classes; cdspell/CDPATH clash?; pre-command?


From: Bauke Jan Douma
Subject: character classes; cdspell/CDPATH clash?; pre-command?
Date: 11 Jun 2002 11:30:37 GMT

 Question: re. Bash / Readline:
How can I customize 'word characters' in readline?
For example, XTerm has the feature of a 'charClass' resource, which allows
me to map individual characters to a certain class of characters.  Using this
to map for instance ':', '/', '.', '-' to the `regualar' word characters
[a-zA-Z0-9] simplifies cutting/pasting, esp. of filenames and url's.


 Comment: re. Bash
I always have shopt 'cdspell=on'.
Usually when I want to cd to /etc/X11, I cd to /etc and then type 'cd x11';
cdspell will forgive my laziness and take me to X11.
I was just experimenting with CDPATH.  Did something like:
CDPATH=.:/home/HARDWARE/electronics:$PATH
Now it seems that cdspell is disabled or rendered ineffective. Apparently I
can't be doubly lazy... :-)
I didn't find this documented in bash(1).


 Comment: re. Bash
(Is Chet Ramey reading this anyways...?).
What about a 'pre-command' feature for bash (hook to a user definable command
to be executed just before each commandline command is interpreted/executed);
PROMPT_COMMAND is just too late...


Bash lives and thanks for your time.

BJ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]