diff options
author | mp <mp@FreeBSD.org> | 2001-09-05 17:49:32 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2001-09-05 17:49:32 +0000 |
commit | 538cdbc622d96ebd9ba6fae4c5b21f8704e88d90 (patch) | |
tree | 836fb15b752f30ac10f0e8bc35125091d7a821a3 /contrib/tcsh/sh.set.c | |
parent | 9b07833722e76f7d023c491eaf74bf278221b55d (diff) | |
download | FreeBSD-src-538cdbc622d96ebd9ba6fae4c5b21f8704e88d90.zip FreeBSD-src-538cdbc622d96ebd9ba6fae4c5b21f8704e88d90.tar.gz |
Import tcsh-6.11
Diffstat (limited to 'contrib/tcsh/sh.set.c')
-rw-r--r-- | contrib/tcsh/sh.set.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/contrib/tcsh/sh.set.c b/contrib/tcsh/sh.set.c index d4bc2f5..fbe3559 100644 --- a/contrib/tcsh/sh.set.c +++ b/contrib/tcsh/sh.set.c @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/sh.set.c,v 3.37 2000/07/15 19:58:51 christos Exp $ */ +/* $Header: /src/pub/tcsh/sh.set.c,v 3.39 2001/03/18 19:06:30 christos Exp $ */ /* * sh.set.c: Setting and Clearing of variables */ @@ -36,7 +36,7 @@ */ #include "sh.h" -RCSID("$Id: sh.set.c,v 3.37 2000/07/15 19:58:51 christos Exp $") +RCSID("$Id: sh.set.c,v 3.39 2001/03/18 19:06:30 christos Exp $") #include "ed.h" #include "tw.h" @@ -160,6 +160,9 @@ update_vars(vp) else if (eq(vp, STRrecognize_only_executables)) { tw_cmd_free(); } + else if (eq(vp, STRkillring)) { + SetKillRing(getn(varval(vp))); + } #ifndef HAVENOUTMP else if (eq(vp, STRwatch)) { resetwatch(); @@ -740,6 +743,8 @@ unset(v, c) symlinks = 0; if (adrof(STRimplicitcd) == 0) implicit_cd = 0; + if (adrof(STRkillring) == 0) + SetKillRing(0); if (did_edit && noediting && adrof(STRedit) == 0) noediting = 0; if (did_roe && adrof(STRrecognize_only_executables) == 0) @@ -1103,6 +1108,8 @@ update_dspmbyte_vars() iskcode = 1; else if (eq(dstr1, STRKEUC)) iskcode = 2; + else if (eq(dstr1, STRKBIG5)) + iskcode = 3; else if ((dstr1[0] - '0') >= 0 && (dstr1[0] - '0') <= 3) { iskcode = 0; } @@ -1127,6 +1134,11 @@ update_dspmbyte_vars() _cmap[lp] = _cmap_mbyte[lp]; _mbmap[lp] = _mbmap_euc[lp]; break; + case 3: + /* 3 ... big5 */ + _cmap[lp] = _cmap_mbyte[lp]; + _mbmap[lp] = _mbmap_big5[lp]; + break; default: xprintf(CGETS(18, 3, "Warning: unknown multibyte code %d; multibyte disabled\n"), @@ -1204,6 +1216,7 @@ autoset_dspmbyte(pcp) { STRLANGEUCKRB, STRKEUC }, { STRLANGSJIS, STRKSJIS }, { STRLANGSJISB, STRKSJIS }, + { STRLANGBIG5, STRKBIG5 }, { NULL, NULL } }; |