On Jan 13, 2008 12:05 PM, Isaac Dupree <[EMAIL PROTECTED]> wrote: > Philip Ganchev wrote: > > On Jan 11, 2008 6:34 PM, Isaac Dupree <[EMAIL PROTECTED]> wrote: > >>>> But just doing nothing when I type "sudo !!" is not very friendly. At > >>>> the > >>>> least, it should pop up a message telling me the "fish way" to do it. > >>> This is about as complicated as fully implementing "!!". > >> code complexity, user simplicity: it's a tradeoff, right? > > > > Not exactly. This is one example of a user habit that is actually > > inefficient. It's fine for the special cases of "!!", "!$" and "!^", > > but in general editing using Bash's substitution mechanism is a > > needless mental burden and a risk. > > How can I not be misinterpreted? I know it's inefficient and risky, so > I want the users who try it out of old habits to be directed to the > fish-way of doing it, not to get a puzzling error message with no idea > what happened! I'm saying that even if "This is about as complicated as > fully implementing "!!".", it's better for us to give a message than to > "fully implement !!", (if it's worth doing either -- which sounds nearly > impossible to do without unduly messing up cases where it was intended > as a normal string. In other words, I think it's harder to implement > the message ideally than to implement bash-style !!)
I agree with you that giving a nice error message to guide you toward the fish way of doing things would be nice. In this case, the only way to do that is to make '!' into a special magical character that has to be escaped, though, and I don't think that it's worth making yet another character magical just to give better error messages. Axel > > ~Isaac > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Fish-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fish-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
