silent 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ########################################################################
  2. # #
  3. # This software is part of the ast package #
  4. # Copyright (c) 1994-2011 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. # Glenn Fowler <gsf@research.att.com> #
  18. # #
  19. ########################################################################
  20. # non-ksh stub for the nmake silent prefix
  21. # @(#)silent (AT&T Research) 1992-08-11
  22. (command set -o posix) 2>/dev/null && set -o posix
  23. modern_export=`v=; export v=ok 2>/dev/null; echo "$v"`
  24. while :
  25. do case $# in
  26. 0) exit 0 ;;
  27. esac
  28. case $1 in
  29. *=*) case $modern_export in
  30. ok) export "$1" ;;
  31. *) `echo $1 | sed "s/\\([^=]*\\)=\\(.*\\)/eval \\1='\\2'; export \\1/"` ;;
  32. esac
  33. shift
  34. ;;
  35. *) break
  36. ;;
  37. esac
  38. done
  39. "$@"