17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
-
-
-
-
-
-
-
+
+
+
+
+
+
-
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
command = sprintf("echo ""%s;"" | ginsh ", go_in);
go_out = system(command);
## Strip trailing NL
go_out = substr(go_out,1,length(go_out)-1);
command = sprintf("echo '%s;' | ginsh ", go_in); # sh command
go_out = system(command); # execute it
if (length(go_out)>0) # Strip trailing NL
go_out = substr(go_out,1,length(go_out)-1);
endif
endfunction
|