All good advice. Especially never to run away as you will appear to be prey. The bear will instinctively chase you, and guaranteed, you will never outrun a bear. I live in an area with lots of black bear, and I've had a couple of encounters. Every time the bear has been more scared of me than I was of it.

A friend of mine was hunting black bear, with a long bow, on the ground. He was sitting with his back up against a tree. A huge bear walked out from behind the tree and actually stepped over his outstretched legs. The bear didn't care that he was there; he was after the corn in the field. Took my friend a while to get the nerve up to move again afterwards though.