From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7218 invoked from network); 30 Nov 1999 23:22:30 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Nov 1999 23:22:30 -0000 Received: (qmail 6562 invoked by alias); 30 Nov 1999 23:22:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8830 Received: (qmail 6555 invoked from network); 30 Nov 1999 23:22:22 -0000 Date: Tue, 30 Nov 1999 18:22:21 -0500 From: Clint Adams To: zsh-workers@sunsite.auc.dk Subject: posixism and unrelated spellcheck editing Message-ID: <19991130182221.A474@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i I'm contemplating how to implement two features and they keep seeming more and more complicated. The first is POSIX options to the "command" builtin, basically overloading it with a modified "whence" under EMULATE_SH or perhaps when POSIX_BUILTINS is set and not otherwise. It would be easier to differentiate the two meanings into BINF_COMMAND and something else while parsing, but that doesn't seem possible without some special handling. So should BINF_COMMAND check to see if it's followed by '-p', '-V', or '-v' and then modify its own cflags? The other is something that will, upon an 'e' response to sprompt, position the cursor at the point of the potential error. How to determine the position, where, and when?