Skip to main content

Linux Tip of the Day — Environment variables, bash script execution in the context of your command-line window

I had to remind myself about this as I worked on Unix/Linux platform a long time ago and having been in Microsoft shops for many years did not help either :)
If you want your environment variables (being set up by another script) to be properly set up in the context of the window where you are running the script, you have to run the script with a dot and a space in front of it as shown in the screenshots below.
Screenshot of vim editor showing you the content of setup.sh script:
Executing the script in bash window and then verifying if an environment variable is set up:

Thank you for reading.
Almir Mustafic


Comments

Popular posts from this blog

10,000 foot level view in technology

10,000 foot level view in technology: How useful is it? What can be done at this level? If the 30,000 foot level is the CTO level, then consider the 10,000 foot level as the level that software engineering managers and directors operate at. To achieve the success at 10,000 foot level, you as a software engineering manager need to dive deep into technical details, help the team lay the foundation from BOTH organizational and technical side. It is the little moves that get the team to this level. Once the team’s applications and results at that level, then you as a manager have ability to perform the high level analysis and troubleshooting without necessarily being in code on daily or weekly basis. Therefore, your ability to troubleshoot technical issues at the 10,000 foot level is a testament to the great work of your team. Go TEAM !! Almir Mustafic

great software engineering skills?

great_software_engineering_skills = great_coding_skills + all_around_problem_solving_skills Yes, you can be a great Java developer. Yes, you can be a great C# developer. Yes, you can be a great Python developer. However, don’t associate yourself with a programming language because you are limited by the boundaries of that language. What you should be is a problem solver and your horizon automatically expands. I know :) You can still have a favorite language, but don’t associate yourself only with it. Happy Saturday! Almir.

With the trend of Javascript Frameworks comes more responsibility

With the trend of front-end Javascript frameworks, there is more and more logic pushed to the client side in the Javascript code. With all this comes more responsibility when we talk about security. It requires a lot of discipline. Front-end and back-end (API) developers need to work very closely together so that secure information is not revealed in the Javascript code. Almir Mustafic