According to the man page of launchctl, there is an export command:

export   Export all of the environment variables of launchd for use in a shell eval

However, when I try to use this command, I get the following message.

Unrecognized subcommand: export
Usage: launchctl <subcommand> ... | help [subcommand]

What's going on here? Did the command exist at some point, but was removed for some reason, and someone forgot to update the man page?


Apparently launchctl export is just gone.

FWIW launchctl dumpstate appears to contain that info (and much much more), so given enough effort, one could parse it out of there, I guess.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .