implement export (contd)

fill in argument including environment variables