File: ch07s06.html

package info (click to toggle)
genius 1.0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 25,308 kB
  • sloc: ansic: 75,620; xml: 71,565; sh: 4,445; makefile: 1,927; lex: 523; yacc: 298; perl: 54
file content (10 lines) | stat: -rw-r--r-- 3,449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Загрузка программ</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Руководство пользователя Genius"><link rel="up" href="ch07.html" title="Chapter 7. Advanced Programming with GEL"><link rel="prev" href="ch07s05.html" title="GEL Startup Procedure"><link rel="next" href="ch08.html" title="Chapter 8. Матрицы в GEL"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Загрузка программ</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch07s05.html">Prev</a> </td><th width="60%" align="center">Chapter 7. Advanced Programming with GEL</th><td width="20%" align="right"> <a accesskey="n" href="ch08.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-gel-loading-programs"></a>Загрузка программ</h2></div></div></div><p lang="en">
Sometimes you have a larger program you wrote into a file and want to read that file into <span class="application">Genius Mathematics Tool</span>. In these situations, you have two options. You can keep the functions you use most inside the <code class="filename">~/.geniusinit</code> file. Or if you want to load up a file in a middle of a session (or from within another file), you can type <span class="command"><strong>load &lt;list of filenames&gt;</strong></span> at the prompt. This has to be done on the top level and not inside any function or whatnot, and it cannot be part of any expression. It also has a slightly different syntax than the rest of genius, more similar to a shell. You can enter the file in quotes. If you use the '' quotes, you will get exactly the string that you typed, if you use the "" quotes, special characters will be unescaped as they are for strings. Example:
</p><pre lang="en" class="programlisting">load program1.gel program2.gel
load "Weird File Name With SPACES.gel"
</pre><p lang="en">
There are also <span class="command"><strong>cd</strong></span>, <span class="command"><strong>pwd</strong></span> and <span class="command"><strong>ls</strong></span> commands built in. <span class="command"><strong>cd</strong></span> will take one argument, <span class="command"><strong>ls</strong></span> will take an argument that is like the glob in the UNIX shell (i.e., you can use wildcards). <span class="command"><strong>pwd</strong></span> takes no arguments. For example:
</p><pre lang="en" class="programlisting">cd directory_with_gel_programs
ls *.gel
</pre><p lang="en">
      </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch07s05.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch08.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">GEL Startup Procedure </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 8. Матрицы в GEL</td></tr></table></div></body></html>