-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathaliases.c
50 lines (47 loc) · 2.99 KB
/
aliases.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2014 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* http://www.eclipse.org/org/documents/epl-v10.html *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgkorn@gmail.com> *
* *
***********************************************************************/
#include "config_ast.h" // IWYU pragma: keep
#include <signal.h>
#include <stddef.h>
#include "name.h"
#include "shtable.h"
//
// This is the table of built-in aliases. These should be exported.
//
const struct shtable2 shtab_aliases[] = {{"autoload", NV_NOFREE, "typeset -fu"},
{"bool", NV_NOFREE | BLT_DCL, "_Bool"},
{"command", NV_NOFREE, "command "},
{"compound", NV_NOFREE | BLT_DCL, "typeset -C"},
{"fc", NV_NOFREE, "hist"},
{"float", NV_NOFREE | BLT_DCL, "typeset -lE"},
{"functions", NV_NOFREE, "typeset -f"},
{"hash", NV_NOFREE, "alias -t --"},
{"history", NV_NOFREE, "hist -l"},
{"integer", NV_NOFREE | BLT_DCL, "typeset -li"},
{"nameref", NV_NOFREE | BLT_DCL, "typeset -n"},
{"nohup", NV_NOFREE, "nohup "},
{"r", NV_NOFREE, "hist -s"},
{"redirect", NV_NOFREE, "command exec"},
#ifdef SIGTSTP
{"stop", NV_NOFREE, "kill -s STOP"},
{"suspend", NV_NOFREE, "kill -s STOP \"$$\""},
#endif // SIGTSTP
{"type", NV_NOFREE, "whence -v"},
{"", 0, NULL}};