freebsd-dev/tools/regression/bin/sh/builtins/unalias.0
2005-09-04 11:59:59 +00:00

22 lines
292 B
Plaintext

# $FreeBSD$
set -e
alias false=true
false
unalias false
false && exit 1
unalias false && exit 1
alias a1=foo a2=bar
unalias a1 a2
unalias a1 && exit 1
unalias a2 && exit 1
alias a2=bar
unalias a1 a2 && exit 1
alias a1=foo a2=bar
unalias -a
unalias a1 && exit 1
unalias a2 && exit 1
exit 0