 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Thu Jun 12, 2008 2:12 am
[2.26] Dangerous tab expansion of aliases at the command line. |
I like being able to tab complete text from the window and I use it a lot. However there is a very dangerous aspect of this in that Cmud will expand aliases as well if you type an alias and hit tab.
I have a ton of aliases and many of them are huge. So what happens from time to time is that I accidentally type the name of an alias that I actually wanted expanded to a word from the Mud and it expands to the full text of my huge alias. This can cause a lot of unpredictable results to happen especially if I accidentally press enter and execute it along with a prefix of whatever else I had in my command line at the time. I've actually crashed Cmud a few times when I've hit a particularly long alias.
Would it be possible to alter the behavior of the tab expansion so that this type of alias expansion couldn't happen by accident? |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Jun 12, 2008 5:42 am |
Hmm, excellent point. I use tab completion all the time myself too, but my aliases are not named anything that normally expands, so I don't get this problem myself. But I can see where this would be a big issue and could really ruin the usefulness of the tab expansion of MUD text. Although I've never seen a case of this crash CMUD, so send me specifics if you can reproduce that.
But I'll add an option to turn off alias tab expansion. Maybe even in 2.27. |
|
|
|
 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Thu Jun 12, 2008 7:39 am |
The worst ones I have no idea what they were because I crashed, but I'll keep an eye out for you and try a few to see which may have caused it.
Thanks for adding that option! |
|
|
|
 |
|
|
|