3
0

export-n.tests 663 B

12345678910111213141516171819202122232425262728293031323334353637
  1. export aaa1="'''"
  2. export aaa2=""
  3. export aaa3="'''abc"
  4. export | grep aaa.=
  5. export -n aaa1
  6. unset aaa2; export -n aaa2="ghi"
  7. export -n aaa3="klm"
  8. export | grep aaa.=
  9. export aaa4=4 aaa5=5
  10. export -n aaa4=4n
  11. export -n aaa5
  12. export | grep aaa.=
  13. export aaa5=5 aaa6=6 aaa7=7 aaa8=8
  14. export -n aaa5 aaa6=6n aaa7
  15. export | grep aaa.=
  16. aaa9=9
  17. export -n aaa9
  18. set | grep ^aaa9=
  19. export aaa10=10
  20. export -n aaa10
  21. set | grep ^aaa10=
  22. export EXPORTED=qwe
  23. export -nnnnnn nnnnnn; echo "Nothing:"; env | grep nnnnnn
  24. export -n EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED
  25. export EXPORTED=qwe
  26. export -n EXPORTED; EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED
  27. echo Done