2
Jun 04 '16 edited Jun 04 '16
/bin/echo --helpBut that was interesting
echo $-
0569EJNTXZahimsEdit: It took me a while, but I finally figured out that
$-expands to the current shell options. That fact is not documented in the zshall manpage. It's in dash too. Hmmm. /me searches and find a man page for the Bourne shell which says:
The current set of flags may be found in $-.
2
u/[deleted] Jun 04 '16
No no no. Echo can only output string literals. You want echo $--help.