Once again, sorry for the late reply... On 6/16/07, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Sat, Jun 16, 2007 at 12:55:57AM +0200, Axel Liljencrantz wrote: > > I'm afraid you're right. We've been trying to get the word boundary > > definition right in fish for a _long_ time, but there always pops up a > > new corner case. I kind of lost the energy to find the perfect > > definition some time ago. Hopefully I'll get it back some day. You're > > welcome to submit a patch! > > how is the code around this structured? > is there some kind of tokenizer that parses the whole commandline and > breaks it into pieces?
The code is right now a single C function, called move_word, which is defined in reader.c. Feel free to fix it! > > or does it just operate on the whole string? It operatesd on the whole thing as it is written today. > > i suspect you have a tokenizer somewhere to figure out the individual > commandline arguments. I do. > > maybe the problem is not one of the right algorithm to figure out what > to delete, but rather one of structure, and you just need to split the > commanline into arguments before you apply the word-boundary detection. > > i am saying this without haveing taken a look at the code, so if i am > talking nonsense, please ignore me. This makes excellent sense. Unfortunatly, the fish tokenizer splits a command into separate tokens on argument boundaries. Using the tokenizer would lead to emulating the bash behaviour of only stopping on non-escaped whitespace, whereas I like the fish behaviour of also stopping on non-alphanumericals. Axel > > greetings, martin. > -- > cooperative communication with sTeam - caudium, pike, roxen and unix > offering: programming, training and administration - anywhere in the world > -- > pike programmer working in new zealand open-steam.org|webhaven.co.nz > unix system- bahai.or.at iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
