Commit 154561b9 authored by Lucas Nussbaum's avatar Lucas Nussbaum

Imported Upstream version 6.14.00

parents
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/bin/sh
#
# MAKEDIFFS.sh: Make context diffs for the csh sources
#
# $Id: MAKEDIFFS,v 3.0 1991/07/04 21:57:47 christos Exp $
XINUDIR=/usr/share/src/mtXinu/bin/csh
BSDDIR=/usr/share/src/mtXinu/BSD/bin/csh
TAHOEDIR=/usr/share/src/mtXinu/TAHOE/bin/csh
RENODIR=/usr/share/src/mtXinu/RENO/bin/csh
TCSHDIR=`pwd`
case "x$1" in
xxinu)
CSHDIR=$XINUDIR;;
xbsd)
CSHDIR=$BSDDIR;;
xtahoe)
CSHDIR=$TAHOEDIR;;
xreno)
CSHDIR=$RENODIR;;
x*)
echo "Usage: `basename $0` [bsd|tahoe|xinu|reno]";exit 1;;
esac
DIFF1='sh.c sh.char.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.exp.c sh.file.c'
DIFF2='sh.func.c sh.glob.c sh.hist.c sh.init.c sh.lex.c sh.misc.c sh.parse.c sh.print.c'
DIFF3='sh.proc.c sh.sem.c sh.set.c sh.time.c sh.char.h sh.dir.h sh.h sh.local.h sh.proc.h'
for i in $DIFF1
do
diff -c $CSHDIR/$i $TCSHDIR/$i
done > DIFFS.1
for i in $DIFF2
do
diff -c $CSHDIR/$i $TCSHDIR/$i
done > DIFFS.2
for i in $DIFF3
do
diff -c $CSHDIR/$i $TCSHDIR/$i
done > DIFFS.3
exit 0
#!/bin/sh
#
# MAKESHAR.sh: Make a shar file for the sources
#
# $Id: MAKESHAR,v 3.1 1992/05/09 04:03:53 christos Exp $
AWK=/usr/bin/nawk # Must be nawk or gawk cause of 2D arrays
WC=/usr/ucb/wc
GREP=/usr/bin/egrep
SORT=/usr/bin/sort
SH=/bin/sh
dirs=
name=kit
files=
verbose=0
size=45000
for i
do
case $i in
-n)
name=;;
-v)
verbose=1;;
-d)
SH=/bin/cat;;
-s)
size=$1;;
*)
if [ -z "$name" ]
then
name=$i
elif [ -d $i ]
then
dirs="$dirs $i"
elif [ -f $i ]
then
files="$files $i"
else
echo "$0: File `$i' not found." 1>&2
exit 1
fi;;
esac
done
if [ \( -z "$files" \) -a \( -z "$dirs" \) ]
then
echo "Usage: $0 [-n name] [-s size] [-vd] <files>." 1>&2
exit 1
fi
$WC $files | $GREP -v total | $SORT +2 | $AWK '
BEGIN {
i = 0;
seq = 1;
size = 0;
name = 1;
used = 2;
verbose='"$verbose"';
tty = "/dev/tty";
maxsize = '"$size"';
dirs = "'"$dirs"'";
};
{
a[i, size] = $3;
a[i, name] = $4;
a[i, used] = 0;
i++;
};
END {
for (maxi = i--; i >= 0; i--) {
idx = 0;
if (a[i, used] == 0) {
if (verbose && a[i, size] > maxsize)
printf("Warning: File %s is %d > %d\n",
a[i, name], a[i, size], maxsize) > tty;
s = a[i, size];
a[i, used] = 1;
kit[seq, idx++] = i;
j = 0;
while (j < maxi) {
# Find the greatest file we can add
j = maxi;
for (k = 0; k < maxi; k++)
if (a[k, used] == 0 && a[k, size] + s < maxsize)
j = k;
if (j < maxi) {
s += a[j, size];
a[j, used] = 1;
kit[seq, idx++] = j;
}
}
sizes[seq] = s;
kit[seq++, idx] = -1;
}
}
for (i = 1; i < seq; i++) {
printf("shar -n%d -e%d %s ", i, seq - 1, dirs);
if (verbose) {
printf("%3d of %3d: ", i, seq - 1) > tty;
len = 12;
}
for (j = 0; kit[i, j] != -1; j++) {
s = a[kit[i, j], name];
if (verbose) {
clen = length(s) + 1;
len += clen;
if (len > 70) {
printf("\n ") > tty;
len = 12 + clen;
}
printf("%s ", s) > tty;
}
printf("%s ", s);
}
printf("> '"$name"'-%d.shar;", i);
if (verbose)
printf("= %5d\n", sizes[i]) > tty;
}
}' | $SH
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This file contains visible (incompatible) changes to the users.
This version of tcsh has the following new things:
6.08
* %$variables are now expanded in the prompt.
* print_by_columns prints in a single column if the output is not a tty.
* REMOTEHOST contains only the IP address, not the host name of the machine.
* names in .cshdirs are quoted.
* exit value from 0..255 not -128..127 as posix mandates.
6.07
* Implicit cd when the variable implicitcd is set or set to verbose
6.06
* NLS Message Catalog support.
6.05
* The bind, aliases, linedit builtins are not used anymore; they are
#ifdef'ed OBSOLETE and will be really removed in the next version
* new filetest builtin
* new hup builtin
* =x obeys nonomatch
* tcsh.man2html nroff to HTML converter for the tcsh manpage
* prompt is now %# by default.
* $REMOTEHOST contains the name of the remote host (optional)
* $HOSTTYPE is going away. New variables $OSTYPE, $MACHTYPE, $VENDOR similar
to the gnu ones.
* $< can be interrupted and takes modifiers. Does not quote args by default
like csh.
6.04
* Variable modifiers do not stop processing after the first one fails
> set i=aabbcc
> echo $i:s/a/A/:s/b/B/
AaBbcc
> echo $i:s/x/A/:s/b/B/
aabbcc
* set -r makes variables readonly
* set nonomatch, echo ~notaser returns ~notauser instead of an error
* file operators: Changed -s == !-z and -S == socket
* $?0 returns false now on interactive shells for csh compatibility.
* %p%P include seconds in prompt strings.
6.03
* $%var contains the number of characters in $var.
* Shell -w -x are now POSIX compliant on POSIX machines.
* Imported environment variables are not globbed.
* $dirstack can be used to set and examine the directory stack.
* $? == $status and $# == $#argv like in the bourne shell.
* expand variables expands arrays too (but not array elements yet).
* $0 contains argv[0] on interactive shells.
* new -b -c etc file operators from SGI csh.
* nostat takes a list of shell patterns.
* symbolic names for arrow key bindings [left, right, up, down]
* shift, left operators update variables correctly.
* builtins builtin.
* history and dirs accept now -LSc flags.
* $history accepts an optional second argument, that can change the
history builtin output similar to the $time format.
* History timestamps preserved in .history. The history file contains
now the timestamps as csh comments.
6.02
* ignore_symlinks and chase_symlinks are replaced with symlinks=ignore
and symlinks=chase; symlinks=expand addition
* complete and uncomplete builtins; user-programmable completion additions.
* Tcsh now uses the rightmost column of the terminal, allowing cut-and-paste
operations in terminal emulators that work [xterm R5 not R4]
* echo_style controls now the behaviour of the builtin echo; the default
should match the builtin echo of /bin/csh; if your system does not
come with csh, then the default echo should match /bin/echo.
* cd -; changes to the previous directory.
* setting dunique variable pushes only unique directories on the directory
stack.
* source builtin allows additional arguments that get passed in $argv in
the sourced script.
* tcsh now mirrors correctly all exported csh variables [term=TERM,path=PATH
etc.]
* showdots=-A makes listing behave like ls -A.
* directory stack access =<num> allows for entries > 9.
* $a:u uppercase the first character in $a, $a:l downcases the first
character in $a.
* Shorthand for file tests in 'if' expressions ( -dx file ) is the
same as ( -d file && -x file )
6.01
* Nothing new.
6.00 PL3
* %d in the prompt is the week-day and no longer $cwd; use %/ instead.
* changes in the prompt format. Date changes to accomodate people from
down under.
* vi insert mode to command mode transition does not move the cursor.
6.00 PL2
* setty builtin
This is used to specify what tcsh modes can be altered using stty,
Modes that should be set are specified as +<mode>, modes that should
be cleared are specified as -<mode>, and the ones that should be
untouched are specified as <mode>. setty with no arguments prints
the modes that are affected by tcsh, and setty -a prints all modes.
* multiple : modifiers in variables and ! escapes. Things like:
> set prompt="$host:r:$cwd>"
don't work any more, they should be replaced with
> set prompt="${host:r}:$cwd>"
or
> set prompt="$host:r"":$cwd>"
the reason is that now you can
> set foo=/usr/local/a.b.c
> echo $foo:t:r:e
b
If for some reason you don't like this change you can disable it with
-DCOMPAT. -DCOMPAT may go away in future tcsh versions and the way tcsh
works now is the way the 4.4BSD csh works.
6.00 PL1
* There is no more config.iris4d, use config.sgi instead
6.00
* History searching searches using shell patterns too.
* The autolist values that controlled beeping are not supported any more;
used matchbeep instead.
* /etc/Login and /etc/Logout were renamed to /etc/csh.login /etc/csh.logout
and /etc/csh.cshrc was added
* prompt2 and prompt3 can have prompt escapes.
* eval pipes work
* ignore_symlinks works
5.20 PL2
* %{..%} escapes in prompt
5.20 PL0
* bindkey -r
* history -t
* shell variables in paths expand correctly.
* variable expansion
* quoted expansions now work.
* new version and tcsh variable format
5.19 PL2
* NLS support
* New bindkey and echotc builtins
* Underline and Bold in the prompt; additions and changes to the prompt and
who syntax (%u is now %n, so that %u can be used to turn undeline off,
and %n is now \n).
* rmstar needs to be set to protect from accidental removal
* Fixed editor, and spell line.
* Glob-expand, on arguments.
* Added process migration builtins for aix370
5.19 PL1
* Maintainance release for mainly the rs6000
5.19 PL0
* 8 bit clean code, by using 16 bit strings.
* Mostly shared strings (a side-effect)
* Highlights everywhere (and in ls-F) filenames that contain characters
with the eighth bit set (or passes them unchanged depending on the
variable 'nometa')
* Newline in the prompt via %n.
* dirs takes also a -v flag for `vertical display'
* There is a new variable `listjobs' which controls if and how jobs
are displayed when a new job is suspended. [Idea from the mtXinu
code, very useful for novice users who hit control-Z 10 times on
the same job!]
set listjobs=long, jobs -l is executed every time a job is suspended.
set listjobs=short, jobs is executed every time a job is suspended.
* Passes lint... At least on a sun.
This diff is collapsed.
This diff is collapsed.
If you have imake running on your machine, you may skip steps 1 and 2
described in the README file and try instead the process described here.
Note that imake is not supported for all the platforms yet, so this
might not work on your machine. If that is the case please let us know.
If you can send a patch that fixes the problem we would appreciate it.
1. edit imake.config and modify the configurable parameters to your liking.
2. 'xmkmf; make depend; make'
This diff is collapsed.
The tcsh code has been tested on a solaris-2.6 machine and a
NetBSD-1.3H machine running before, and after the year 2000. The
code has been also visually inspected for Y2K compliance problems.
Tcsh does not use time functions for anything but display purposes,
so its operation should not be affected assuming that the time
related functions of the c library work properly.
Note: Since the last audit, tcsh-6.08.00 has been found to have
a minor problem with %y in the prompt (it will print 10 instead
of 00 in y2k). This has been fixed in tcsh-6.09.00.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
config/ultrix 0 → 100644