keep icon indicating copy to clipboard operation
keep copied to clipboard

export command not working

Open MSDuncan82 opened this issue 5 years ago • 1 comments

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?

MSDuncan82 avatar Sep 23 '19 17:09 MSDuncan82

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.

OrkoHunter avatar Sep 24 '19 16:09 OrkoHunter