Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2798

when sourcing a bashrc how to get the line number of the error messages

$
0
0

Following this post, I am souring a bashrc file inside the WSL2/Ubuntu by:

source /usr/share/openfoam/etc/bashrc

but I get lots of error messages:

-bash: /usr/share/openfoam/bin/<someFile>: No such file or directory

now I want to know which line(s) of the original bashrc file is causing these errors. I don't want to mess up the script, so preferably if the source command has some options to print out the line numbers of the stream output, or is there a way to activate that generally, that would be the best.


Viewing all articles
Browse latest Browse all 2798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>