1/*********************************************************************** 2* * 3* This software is part of the ast package * 4* Copyright (c) 1982-2012 AT&T Intellectual Property * 5* and is licensed under the * 6* Eclipse Public License, Version 1.0 * 7* by AT&T Intellectual Property * 8* * 9* A copy of the License is available at * 10* http://www.eclipse.org/org/documents/epl-v10.html * 11* (with md5 checksum b35adb5213ca9657e911e9befb180842) * 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 "defs.h" 22#include <signal.h> 23#include "FEATURE/options" 24#include "FEATURE/dynamic" 25 26/* 27 * This is the table of built-in aliases. These should be exported. 28 */ 29 30const struct shtable2 shtab_aliases[] = 31{ 32#if SHOPT_FS_3D 33 "2d", NV_NOFREE, "set -f;_2d", 34#endif /* SHOPT_FS_3D */ 35 "autoload", NV_NOFREE, "typeset -fu", 36 "command", NV_NOFREE, "command ", 37 "compound", NV_NOFREE|BLT_DCL, "typeset -C", 38 "fc", NV_NOFREE, "hist", 39 "float", NV_NOFREE|BLT_DCL, "typeset -lE", 40 "functions", NV_NOFREE, "typeset -f", 41 "hash", NV_NOFREE, "alias -t --", 42 "history", NV_NOFREE, "hist -l", 43 "integer", NV_NOFREE|BLT_DCL, "typeset -li", 44 "nameref", NV_NOFREE|BLT_DCL, "typeset -n", 45 "nohup", NV_NOFREE, "nohup ", 46 "r", NV_NOFREE, "hist -s", 47 "redirect", NV_NOFREE, "command exec", 48 "source", NV_NOFREE, "command .", 49#ifdef SIGTSTP 50 "stop", NV_NOFREE, "kill -s STOP", 51 "suspend", NV_NOFREE, "kill -s STOP $$", 52#endif /*SIGTSTP */ 53 "times", NV_NOFREE, "{ { time;} 2>&1;}", 54 "type", NV_NOFREE, "whence -v", 55 "", 0, (char*)0 56}; 57 58