Classic confinement review: rescript

I tried again setting up the script to work with ~/snap/rescript/current as the $HOME so it will save and look just there and it doesn’t work either when you try to open the configuration file with the selected editor. The code to open the configuration/exclusions files is "$EDITOR" $HOME/.rescript/config/$conf.conf 2> /dev/null; $conf is determined by read. grep and sed are used to display the names of the configuration/exclusions files. Once you have selected the EDITOR to work with rescript, the selected text editor name is saved in a file and the EDITOR retrieve it using cat $HOME/.rescript/config/.editor. Using bash -x rescript config again:

++ cat /home/sulfuror/snap/rescript/current/.rescript/config/.editor
+ EDITOR=mousepad

So the script is setting the editor right but once you try to open the configuration files (without using bash -x) it doesn’t do anything.