xref: /titanic_51/usr/src/lib/libshell/common/data/aliases.c (revision a49a392f179e40c74ea8903bf2793b2aa49efdf1)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *           Copyright (c) 1982-2007 AT&T Knowledge Ventures            *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                      by AT&T Knowledge Ventures                      *
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 	"fc",		NV_NOFREE,	"hist",
40 	"float",	NV_NOFREE,	"typeset -lE",
41 	"functions",	NV_NOFREE,	"typeset -f",
42 	"hash",		NV_NOFREE,	"alias -t --",
43 	"history",	NV_NOFREE,	"hist -l",
44 	"integer",	NV_NOFREE,	"typeset -li",
45 	"nameref",	NV_NOFREE,	"typeset -n",
46 	"nohup",	NV_NOFREE,	"nohup ",
47 	"r",		NV_NOFREE,	"hist -s",
48 	"redirect",	NV_NOFREE,	"command exec",
49 	"source",	NV_NOFREE,	"command .",
50 #ifdef SIGTSTP
51 	"stop",		NV_NOFREE,	"kill -s STOP",
52 	"suspend", 	NV_NOFREE,	"kill -s STOP $$",
53 #endif /*SIGTSTP */
54 	"times",	NV_NOFREE,	"{ { time;} 2>&1;}",
55 	"type",		NV_NOFREE,	"whence -v",
56 	"",		0,		(char*)0
57 };
58 
59