3
0

alias.tests 581 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # place holder for future alias testing
  2. #ash# shopt -s expand_aliases
  3. # alias/unalias tests originally in builtins.tests
  4. unalias -a
  5. # this should return success, according to POSIX.2
  6. alias
  7. echo alias: $?
  8. alias foo=bar
  9. unalias foo
  10. # this had better return success, according to POSIX.2
  11. alias
  12. echo alias: $?
  13. # bug in all versions through bash-2.05b
  14. unalias qfoo qbar qbaz quux 2>/dev/null
  15. alias qfoo=qbar
  16. alias qbar=qbaz
  17. alias qbaz=quux
  18. alias quux=qfoo
  19. qfoo
  20. unalias qfoo qbar qbaz quux
  21. unalias -a
  22. alias foo='echo '
  23. alias bar=baz
  24. alias baz=quux
  25. foo bar
  26. unalias foo bar baz