Answer the question
In order to leave comments, you need to log in
Question for those who know a lot about bash scripts
It is required from the bash script to change the value of the variables: PATH and others. Everything seems to work, but it doesn't.
#!/bin/bash
export PATHMY="text"
export PATH="$PATH:/home/myname/test"
echo $PATHMY
Answer the question
In order to leave comments, you need to log in
In the file ~/.bashrc
Add lines:
PATHMY="text"
PATH="$PATH:/home/myname/test"
1. Through export, variables are changed only within the framework of this session.
2. Therefore, you need to register in .profile or bash.rc.
Describe the normal task before you, please. then you can think about how to solve the problem
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question