Henning Bekel wrote: >> I wonder if we could specify whether or not to completely redraw >> the line with a return status. > > As far as I see it there hasn't been a reason to return a specific > value from a function bound via -x in the past, has there? Still, > maybe some users have done so out of principle (as in "I just > always return 0 on success for any function"), and thus giving > meaning to the return value might result in unexpected behaviour > for existing code... not sure about this. > > Alternatively, couldn't another option like '-X' be introduced for > bind to explicitly request not to redraw the line completely? Or > would you consider this feature creep?
I'd rather use something like the command returning 2 to denote this. There's precedent here: the debugging code uses 2 as a special return status from the DEBUG trap to do different things. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/