Greetings all,
I couldn't find any reference to this, and I'm not seeing a bug tracker for DS, so I figured I'd post it here. Please let me know if I should posting/searching elsewhere.
I'm a big fan of history counters in my prompt, so I tried to set it up in my shell on DS 3.0.
/lib> prompt $C $N@$M:$P>
$C Xenophanes@XenoMUD:/lib>
Not exactly what I expected. So, I dug a bit and discovered in line 355 of /lib/nmsh.c:
if(grepp(ret,"$C")) ret = replace_string(ret,"",itoa( CmdNumber+1 ));
I changed it to:
if(grepp(ret,"$C")) ret = replace_string(ret,"$C",itoa( this_object()->GetCommandNumber() ));
But this hasn't completely solved the problem. I get a command number now, but it isn't working properly. It appears that the history related code was taken out of /lib/nmsh.c and put into /lib/history.c, and the history code doesn't appear to be working quite right. Some commands get put into the history, and some don't. I haven't worked out all the details of it yet.
I thought it would be a simple fix in /lib/nmsh.c, but it appears it will be more involved. Has anyone seen this issue, or is anyone working on it? Is there anyone familiar enough with the history code to provide a little (ahem) history or status on it?
-X