1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Warn that the ``alias'' command is depricated.

We still process it for now though.
This commit is contained in:
Brian Somers 2000-08-18 00:01:30 +00:00
parent a366213452
commit c1a6c9e21c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64801

View File

@ -2623,6 +2623,16 @@ RunListCommand(struct cmdargs const *arg)
{
const char *cmd = arg->argc ? arg->argv[arg->argc - 1] : "???";
#ifndef NONAT
if (arg->cmd->args == NatCommands &&
tolower(*arg->argv[arg->argn - 1]) == 'a') {
if (arg->prompt)
prompt_Printf(arg->prompt, "The alias command is depricated\n");
else
log_Printf(LogWARN, "The alias command is depricated\n");
}
#endif
if (arg->argc > arg->argn)
FindExec(arg->bundle, arg->cmd->args, arg->argc, arg->argn, arg->argv,
arg->prompt, arg->cx);