In article <
4600785e-5390-4ffc...@googlegroups.com>,
The -e option means to use readline to allow input editing. Readline
normally uses the TAB key for completion, I don't think it will be put
into the variable.
And even if it is, $char contains the entire input line (which will
include any parts of $cmd that weren't edited away), not just a single
character. If you want to test if there's a TAB anywhere in the input,
you need a wildcard or regexp pattern.
BTW, you don't need that echo thing to get a tab into a variable, you
can simply do:
mytab=$'\t'
--
Barry Margolin,
bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***