Overview
Comment:Avoid problems when ginsh command contains $1 etc
Avoid error when null string returned
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 84a526bf4f618c05e4f118148847be5bddfe384109c0116d1cfeecc540258db1
User & Date: gawthrop@users.sourceforge.net on 2003-03-14 15:23:24
Other Links: branch diff | manifest | tags
Context
2003-03-24
09:00:15
Now uses varname.m to generate variable names
-- thus name format is determined by varname.m only.
check-in: 155c665a01 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2003-03-14
15:23:24
Avoid problems when ginsh command contains $1 etc
Avoid error when null string returned
check-in: 84a526bf4f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:30:39
Tidied up some ifs check-in: 40f6806b38 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/gino/ginsh.m from [9694b2a44d] to [4824a91cb3].

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  ##    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);
  

endfunction







<
|
|
|
|
|
|
<

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); # 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


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]