Re: bash completion and spaces
Hi,
> what accounts for the three missing characters (namely SPACE, TAB,
> and NEWLINE)?
They get eaten by the shell parser if you do not use quotation marks:
  $ echo $COMP_WORDBREAKS | wc -c
  11
  $ echo "$COMP_WORDBREAKS" | wc -c
  14
So to see all characters (including the newline added by "echo") i do:
  $ echo "$COMP_WORDBREAKS" | hd
  00000000  20 09 0a 22 27 3e 3c 3d  3b 7c 26 28 3a 0a        | .."'><=;|&(:.|
  0000000e
Your COMP_WORDBREAKS and mine differ in length, though
  $ echo ${#COMP_WORDBREAKS}
  13
Mine is missing '@'.
Have a nice day :)
Thomas
Reply to: