diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-06-24 22:28:35 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-06-24 22:28:35 +0000 |
commit | 3950ffe2a485479f6561c27364d3d7df5a21d124 (patch) | |
tree | 468c6e14449d1b1e279222ec32f676b0311917d2 /src/cmd/ksh93/data/aliases.c | |
download | ksh-upstream.tar.gz |
Imported Upstream version 93u+upstream
Diffstat (limited to 'src/cmd/ksh93/data/aliases.c')
-rw-r--r-- | src/cmd/ksh93/data/aliases.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/cmd/ksh93/data/aliases.c b/src/cmd/ksh93/data/aliases.c new file mode 100644 index 0000000..d9eca14 --- /dev/null +++ b/src/cmd/ksh93/data/aliases.c @@ -0,0 +1,57 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1982-2012 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 <dgk@research.att.com> * +* * +***********************************************************************/ +#pragma prototyped +#include "defs.h" +#include <signal.h> +#include "FEATURE/options" +#include "FEATURE/dynamic" + +/* + * This is the table of built-in aliases. These should be exported. + */ + +const struct shtable2 shtab_aliases[] = +{ +#if SHOPT_FS_3D + "2d", NV_NOFREE, "set -f;_2d", +#endif /* SHOPT_FS_3D */ + "autoload", NV_NOFREE, "typeset -fu", + "command", NV_NOFREE, "command ", + "compound", NV_NOFREE, "typeset -C", + "fc", NV_NOFREE, "hist", + "float", NV_NOFREE, "typeset -lE", + "functions", NV_NOFREE, "typeset -f", + "hash", NV_NOFREE, "alias -t --", + "history", NV_NOFREE, "hist -l", + "integer", NV_NOFREE, "typeset -li", + "nameref", NV_NOFREE, "typeset -n", + "nohup", NV_NOFREE, "nohup ", + "r", NV_NOFREE, "hist -s", + "redirect", NV_NOFREE, "command exec", + "source", NV_NOFREE, "command .", +#ifdef SIGTSTP + "stop", NV_NOFREE, "kill -s STOP", + "suspend", NV_NOFREE, "kill -s STOP $$", +#endif /*SIGTSTP */ + "times", NV_NOFREE, "{ { time;} 2>&1;}", + "type", NV_NOFREE, "whence -v", + "", 0, (char*)0 +}; + |