I am trying to echo the $- variable in the context of a logi…

I am trying to echo the $- variable in the context of a login, non-interactive shell. I thought I got it right and issued the following command line: bash –login -c “echo $-” This is what I got in response on the screen: himBH Why is this telling me that the command was executed in an interactive shell?! How do I fix this?