Script the above sources the script Is there any way to 'unsource' it or in other words to revert it and restore the previous environment It is as if the commands had been typed in directly
Types of Sources - CCE - LibGuides at University of California San Diego
Any environment changes are kept
Source script this also sources the script
The source command is not required by posix and therefore is less portable than the shorter. Source is a shell keyword that is supposed to be used like this Source file where file contains valid shell commands These shell commands will be executed in the current shell as if typed from the command line.
Exists because it is quick to type Perl has long and short versions of many of its control variables for the same reason. Using source on dash does not work, only Based on your solving attempt log the reason can be in version of vs code jupyter extension that periodically breaks this feature
For me 2025.5.2025051601 kernels are shown and 2025.7.2025072101 gives empty list
The solution is to install specific version under uninstall drop down menu to try some more stable not the latest version I've read that bash_source should be populated with the name of the executing script (and it works!) But why does bash_source hold the name of the executing script, when it is defined in man bash as an array of source filenames corresponding to shell functions? What is the difference between sourcing ('.' or 'source') and executing a file in bash
Ask question asked 13 years, 2 months ago modified 4 years, 7 months ago Export $(xargs <file) it can't handle comments, frequently used in environment files it can't handle values with whitespace, like in the question example it may unintentionally expand glob patterns into files if they match by any chance it's a bit dangerous because it passes the lines through bash expansion, but it has been useful to me when i. When i try to use source from the cron job (i have tried both directly in crontab and in a script called by crontab) it doesn't seem to work I made a simplified version of my project to demonstrate the issue (including rsyslog for logging)
I accidentally sourced the wrong environment from a script