The patch seems to to work all right. I've tested nested strings and they all return the right CWORD with bash-4.0.33 patched:
$ a foo'bar <TAB> # Returns foo'bar $ a "foo'' bar <TAB> # Returns "foo'' bar I just found a corner case bug, but that seems to be in bash-3 as well. The command: $ b'<TAB> doesn't complete with commands but with local filenames, although this is a valid command: $ b'ash' All in all, the patch seems like an improvement to me. Freddy Vulto http://fvue.nl