xref: /titanic_50/usr/src/lib/libshell/common/data/aliases.c (revision abc79d9dd51e98eafb6fc25b4a0b4f66bef40b00)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *          Copyright (c) 1982-2010 AT&T Intellectual Property          *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                    by AT&T Intellectual Property                     *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *            http://www.opensource.org/licenses/cpl1.0.txt             *
11 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
12 *                                                                      *
13 *              Information and Software Systems Research               *
14 *                            AT&T Research                             *
15 *                           Florham Park NJ                            *
16 *                                                                      *
17 *                  David Korn <dgk@research.att.com>                   *
18 *                                                                      *
19 ***********************************************************************/
20 #pragma prototyped
21 #include	<ast.h>
22 #include	<signal.h>
23 #include	"FEATURE/options"
24 #include	"FEATURE/dynamic"
25 #include	"shtable.h"
26 #include	"name.h"
27 
28 /*
29  * This is the table of built-in aliases.  These should be exported.
30  */
31 
32 const struct shtable2 shtab_aliases[] =
33 {
34 #if SHOPT_FS_3D
35 	"2d",		NV_NOFREE,	"set -f;_2d",
36 #endif /* SHOPT_FS_3D */
37 	"autoload",	NV_NOFREE,	"typeset -fu",
38 	"command",	NV_NOFREE,	"command ",
39 	"compound",	NV_NOFREE,	"typeset -C",
40 	"fc",		NV_NOFREE,	"hist",
41 	"float",	NV_NOFREE,	"typeset -lE",
42 	"functions",	NV_NOFREE,	"typeset -f",
43 	"hash",		NV_NOFREE,	"alias -t --",
44 	"history",	NV_NOFREE,	"hist -l",
45 	"integer",	NV_NOFREE,	"typeset -li",
46 	"nameref",	NV_NOFREE,	"typeset -n",
47 	"nohup",	NV_NOFREE,	"nohup ",
48 	"r",		NV_NOFREE,	"hist -s",
49 	"redirect",	NV_NOFREE,	"command exec",
50 	"source",	NV_NOFREE,	"command .",
51 #ifdef SIGTSTP
52 	"stop",		NV_NOFREE,	"kill -s STOP",
53 	"suspend", 	NV_NOFREE,	"kill -s STOP $$",
54 #endif /*SIGTSTP */
55 	"times",	NV_NOFREE,	"{ { time;} 2>&1;}",
56 	"type",		NV_NOFREE,	"whence -v",
57 	"",		0,		(char*)0
58 };
59 
60