#!/bin/bash
export foo='script...'
bash --program=foo
how do you run the exported "foo"
i've been working with gtkdialog and it is written
#!/bin/bash
export MAIN_DIALOG='...xml code...'
gtkdialog --program=MAIN_DIALOG
the same should be possible with a simple bash script?
i would like this to reduce the number of files i must include
currently each set of bash scripts i write for one program are saved in separate files then executed by the main script.
./$foogtkdialog --program="${MAIN_DIALOG}"ought to do it.