assignment of 'deadfl' to 0 in hunt(); bug report 4.3BSD/usr.bin/56
[unix-history] / usr / src / usr.bin / tip / cmdtab.c
CommitLineData
051b1e55
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
05862919 7#ifndef lint
72b2a7a5 8static char sccsid[] = "@(#)cmdtab.c 5.3 (Berkeley) %G%";
051b1e55 9#endif not lint
05862919 10
0535475f
BJ
11#include "tip.h"
12
05862919 13extern int shell(), getfl(), sendfile(), chdirectory();
6330edbf 14extern int finish(), help(), pipefile(), pipeout(), consh(), variable();
05862919 15extern int cu_take(), cu_put(), dollar(), genbrk(), suspend();
0535475f 16
05862919
SL
17esctable_t etable[] = {
18 { '!', NORM, "shell", shell },
0535475f
BJ
19 { '<', NORM, "receive file from remote host", getfl },
20 { '>', NORM, "send file to remote host", sendfile },
21 { 't', NORM, "take file from remote UNIX", cu_take },
22 { 'p', NORM, "put file to remote UNIX", cu_put },
23 { '|', NORM, "pipe remote file", pipefile },
6330edbf 24 { '$', NORM, "pipe local command to remote host", pipeout },
0535475f 25#ifdef CONNECT
6b46907f 26 { 'C', NORM, "connect program to remote host",consh },
0535475f
BJ
27#endif
28 { 'c', NORM, "change directory", chdirectory },
9af70182 29 { '.', NORM, "exit from tip", finish },
0535475f 30 {CTRL(d),NORM, "exit from tip", finish },
72b2a7a5
SL
31 {CTRL(y),NORM, "suspend tip (local+remote)", suspend },
32 {CTRL(z),NORM, "suspend tip (local only)", suspend },
0535475f 33 { 's', NORM, "set variable", variable },
061754f3
SL
34 { '?', NORM, "get this summary", help },
35 { '#', NORM, "send break", genbrk },
0535475f
BJ
36 { 0, 0, 0 }
37};