Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

'export -p' lacks POSIX output



The command 'export -p' always outputs 'typeset' commands. If
POSIXBUILTINS is active, it should output 'export' commands.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_22_03
| When -p is specified, export shall write to the standard output the
| names and values of all exported variables, in the following format:
|
| "export %s=%s\n", <name>, <value>
|
| if name is set, and:
|
| "export %s\n", <name>
|
| if name is unset.

Thanks,

- M.



Messages sorted by: Reverse Date, Date, Thread, Author