mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-16 16:36:03 +02:00
Imported from ../bash-2.01.tar.gz.
This commit is contained in:
@@ -151,6 +151,7 @@ remove_alias (name)
|
||||
{
|
||||
free_alias_data (elt->data);
|
||||
free (elt->key); /* alias name */
|
||||
free (elt); /* XXX */
|
||||
return (aliases->nentries);
|
||||
}
|
||||
return (-1);
|
||||
@@ -164,7 +165,7 @@ delete_all_aliases ()
|
||||
return;
|
||||
|
||||
flush_hash_table (aliases, free_alias_data);
|
||||
free (aliases);
|
||||
dispose_hash_table (aliases);
|
||||
aliases = (HASH_TABLE *)NULL;
|
||||
}
|
||||
|
||||
@@ -247,6 +248,10 @@ alias_expand_word (s)
|
||||
return (r ? savestring (r->value) : (char *)NULL);
|
||||
}
|
||||
|
||||
/* Readline support functions -- expand all aliases in a line. */
|
||||
|
||||
#if defined (READLINE)
|
||||
|
||||
/* Return non-zero if CHARACTER is a member of the class of characters
|
||||
that are self-delimiting in the shell (this really means that these
|
||||
characters delimit tokens). */
|
||||
@@ -529,4 +534,5 @@ alias_expand (string)
|
||||
command_word = 0;
|
||||
}
|
||||
}
|
||||
#endif /* READLINE */
|
||||
#endif /* ALIAS */
|
||||
|
||||
Reference in New Issue
Block a user