Skip to main content
4 events
when toggle format what by license comment
Jan 10, 2017 at 22:19 comment added Gilles 'SO- stop being evil' Neither versions of your answer are quite right. SSH always runs a shell, but that shell does not load /etc/profile or ~/.profile if you're running a command rather than starting an interactive session. If the user's login shell is bash and you are running a command, and only on systems where it's enabled (I don't know whether that's the case on OSX), bash loads ~/.bashrc before executing the command (a bizarre complement to the normal use of .bashrc, which is for interactive non-login shells). In all other cases, .bashrc is not loaded when logging in over SSH.
Mar 21, 2016 at 3:45 comment added techraf I'm still far from understanding this... Adding point no. (7) to the question.
Mar 21, 2016 at 3:23 history edited AMADANON Inc. CC BY-SA 3.0
added 275 characters in body
Mar 21, 2016 at 3:10 history answered AMADANON Inc. CC BY-SA 3.0