Hi I just discovered a new feature in bash that I though might make sense for fish to support:
\cX creates a Control-X character Advantages: It is sometimes easier to rememer the name of a control sequence than it's value. Sometimes you may want to send a Control-D sequence to a program, and you have to count all the way to four to realise that this is equivalent to \4. This problem gets linearly worse when you want to send e.g. a Control-Z seqence. This is a feature of backlslash escapes in bash, so adding this to fish will ever so slightly reduce the headaches of moving from one to the other. Disadvantages: It's not orthogonal. Fish has a huge number of ways to specify escape sequences: * Named sequences, like \n, \r and \t * Numbered sequences, like \4, \x3f and \u2026 * Numbered byte seqences, like \Xfe (These differ from the above in that they can be used to create bytes which do not exist in the current character set, e.g. values above 127 in an ASCII locale) * Control sequences, like \cw and \cA There is a clear overlap between these. But I think convenience has to get some priority here. It is very clear to me that these could not be replace by any single system that has the combined advanatges of all these systems, and they work nicely with each other. I implemented this and added a patch to the darcs tree if anyone wants to try it out. Comments are welcome. -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
