question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorry, but I can’t comment when you close an issue. 🙏🏻

@mbierman source $HOME/.bash_profile is not a launching command because there isn’t any shell starting with .bash_profile

No, but there is a file. If I am in a shell on that device (a Mac) I can source the file and any changes made to it are now active in the shell.

Instead you could use bash -c “source $HOME/.bash_profile”

This also does not work. Eg.

#existing .bash_profile
...
echo "bash env is updated" 

Does not work and in fact I still can’t login at all to the machine if this is active via webssh. However, this works perfectly on the machine in terminal:

source  source $HOME/.bash_profile
bash env is updated

I won’t fix this issue because it’s not on WebSSH part it’s on your SSH server.

Sorry, what does this mean? Once I’m logged in shouldn’t I be able to execute any valid command that otherwise works on the Mac?

Moreover I don’t understand why launching source $HOME/.bash_profile command. Isn’t it launched by your shell at it startup?

I have a PATH set in my .bash_profile. If I don’t source it the path is not reflected so I can’t easily access some commands which is annoying. Setting it and sourcing a file seems like the normal, and easiest way to solve this. Is there a better way?

But setting the particular file aside, if I had any set of commands I wanted to run upon logging in can’t I source any file with valid commands?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mbiermancommented, Aug 4, 2021

That does get me the path! .bashrc didn’t seem to execute though so my echo didn’t work, but that was just a test in this case. I wasn’t familiar with this option.

0reactions
isonthelinecommented, Aug 4, 2021

Happy to hear that it solves your issue 👍

Thank you again for your feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

26 U.S. Code § 368 - Definitions relating to corporate ...
a transfer by a corporation of all or part of its assets to another corporation in a title 11 or similar case; but...
Read more >
RE 368: The Mind F&ck of Alcohol
Episode 368 – The Mind F&ck of Alcohol. Today we have Stephen. He is from New Jersey and took his last drink on...
Read more >
KIP-368: Allow SASL Connections to Periodically Re- ...
When re-authentication needs to occur the client would make a separate, new connection to the broker and send a " ...
Read more >
In re Hiss, 368 Mass. 447
Alger Hiss was struck from the roll of Massachusetts lawyers on August 1, 1952, and now seeks reinstatement. The facts as disclosed by...
Read more >
Re:Joyce Episode 368 – Cavalcades & Comets' Tails on ...
Re :Joyce Episode 368 – Cavalcades & Comets' Tails Frank Delaney's Re: Joyce · Episode Website · More Episodes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found