Actually, what I meant by "make !ras work" was to further emulate csh
syntax (i.e. in addition to !! and ^...^). In other words:
> cast 'fireball' krusty
You hit Krusty with a fireball.
> tell torg I just hit Krusty with a fireball!
You tell Torg, 'I just hit Krusty with a fireball!'
> !cast
You hit Krusty with a fireball.
-j
George writes:
>Working my way through the TODO list...
>
>diff -upPr -x *.o ../stk/comm.c ./comm.c
>--- ../stk/comm.c Sun Apr 14 14:28:46 1996
>+++ ./comm.c Tue Oct 14 21:02:40 1997
>@@ -1259,9 +1259,12 @@ int process_input(struct descriptor_data
> }
> failed_subst = 0;
>
>- if (*tmp == '!')
>- strcpy(tmp, t->last_input);
>- else if (*tmp == '^') {
>+ if (*tmp == '!') {
>+ char tmp_switch[MAX_INPUT_LENGTH + 64];
>+ /* This would be a good spot for snprintf(). */
>+ sprintf(tmp_switch, "%s%s", t->last_input, tmp + 1);
>+ strcpy(tmp, tmp_switch);
>+ } else if (*tmp == '^') {
> if (!(failed_subst = perform_subst(t, t->last_input, tmp)))
> strcpy(t->last_input, tmp);
> } else
>
>This method (of not updating the last input) allows things such as:
>
>tell somebody
>! hi how are you?
>! I'm fine, really.
>! I'm leaving now, bye.
>
>Not really a big feature, but seems more helpful than updating the last
>input. It's trivial to change that if the other way is preferred.
>
>--
>George Greer - Me@Null.net | Genius may have its limitations, but stupidit
>y
>http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST