blob: f39b5ef52dcd9b14bfd5bb947565a5cae4eee571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
Copyright The Numerical Algorithms Group Limited 1992-94. All rights reserved.
Copyright (C) 2007-2009, Gabriel Dos Reis. All rights reserved.
OpenAxiom Help Information.
Section numbers refer to the on-line version of the book
AXIOM: The Scientific Computation System by Richard D. Jenks and Robert S. Sutor
==============================================================================
A.9. )edit
==============================================================================
User Level Required: interpreter
Command Syntax:
- )edit [filename]
Command Description:
This command is used to edit files. It works in conjunction with the )read
and )compile commands to remember the name of the file on which you are
working. By specifying the name fully, you can edit any file you wish. Thus
)edit /u/julius/matrix.input
will place you in an editor looking at the file /u/julius/matrix.input. By
default, the editor is vi, but if you have an EDITOR shell environment
variable defined, that editor will be used. When OpenAxiom is running
under the X Window System, it will try to open a separate xterm
running your editor if it thinks one is necessary. For example, under
the Korn shell, if you issue
export EDITOR=emacs
then the emacs editor will be used by )edit.
If you do not specify a file name, the last file you edited, read or compiled
will be used. If there is no ``last file'' you will be placed in the editor
editing an empty unnamed file.
It is possible to use the )system command to edit a file directly. For
example,
)system emacs /etc/rc.tcpip
calls emacs to edit the file.
Also See:
o )system
o )compile
o )read
|