keep
keep copied to clipboard
export command not working
The keep command does not appear to be changing CDPATH even though the exact same command run without keep seems to work:
(base) user:~$ echo $CDPATH
/home/mike
(base) user:~$ keep run set
1 $ export CDPATH=.:~/Documents/programming_projects/ :: Set CDPATH to ~ and programming_projects
Execute
$ export CDPATH=.:~/Documents/programming_projects/ :: Set CDPATH to ~ and programming_projects
? [Y/n]: y
(base) user:~$ echo $CDPATH
/home/mike
(base) user:~$ export CDPATH=.:~/Documents/programming_projects/
(base) user:~$ echo $CDPATH
.:/home/mike/Documents/programming_projects/
Any idea whats going on here?
Hi @MSDuncan82 !
I can see that keep runs a command using os.system
command.
This Q&A on stackoverflow says that it is not possible to use the export command as it is from Python. So, perhaps keep
should give out a warning that export command will not work from Python or there may be a workaround to it.