0
votes
1answer
72 views

Browse Bash files for a distribution

With my current OS, my LANG value is set by /etc/profile.d/lang.sh I am curious of the code for another distribution, Linux Mint for example. How could I browse this code online, or perhaps ...
1
vote
1answer
364 views

Pipe Python Shell to source-highlight

When I try to make the Python shell get color: python 2>&1 | source-highlight --failsafe -f esc -s python the >>> prompt seems to be always delayed by 1 command. Why is this ...
3
votes
2answers
5k views

Passing a variable to a bash script when sourcing it in another bash script?

Suppose I have in main.sh: NAME="$HOME" if [ -f "$HOME/install.sh" ] then . "$HOME/install.sh" "$NAME" fi and in install.sh: echo $1 This is supposed to echo /home/user/, but it echoes ...