rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 593a3857b992c85038276eb0e4c8aa20d796f3de
parent 23892fe09be24eb8e53747d4d3752eebb0dd2284
Author: tjg <tjg>
Date:   Mon,  1 Oct 2001 10:58:19 +0000

  Bug: the ^A bug is fixed.

Diffstat:
MChangeLog | 6++++++
Mrc.h | 4+++-
Mvar.c | 2+-
3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -695,3 +695,9 @@ Changes since rc-1.5b2 Bug: you can't pass a short to a stdargs function! +2001-09-27 + + Documentation: we don't consider that `.' failing to search path is + a bug. + + Bug: the ^A bug is fixed. diff --git a/rc.h b/rc.h @@ -3,11 +3,13 @@ /* datatypes */ +#define ENV_SEP '\001' +#define ENV_ESC '\002' + /* braindamaged IBM header files #define true and false */ #undef FALSE #undef TRUE - typedef void builtin_t(char **); typedef struct Block Block; typedef struct Dup Dup; diff --git a/var.c b/var.c @@ -107,7 +107,7 @@ extern char *varlookup_string(char *name) { return look->extdef; if (look->def == NULL) return NULL; - return look->extdef = mprint("%F=%-L", name, look->def, "\001"); + return look->extdef = mprint("%F=%W", name, look->def); } /* remove a variable from the symtab. "stack" determines whether a level of scoping is popped or not */