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: 542290e897e60345b1ef07e47abfe61fa0a8ab80100bf064b8215150e07e1e03
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: 4a5032af1d 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: 542290e897 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:30:39
Tidied up some ifs check-in: 082d43c213 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 ]