File: ERRATA

package info (click to toggle)
es 0.90beta1-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 728 kB
  • ctags: 980
  • sloc: ansic: 8,076; sh: 1,503; makefile: 142; yacc: 109
file content (29 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (5)
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
The section named ``Return Values'' on page 56 introduces the <>
operator for obtaining the return value of a command.  That operator
has been renamed <= to avoid conflicting with the posix-compatible
defintion of <> as ``open for reading and writing.''

error exceptions now have an additional piece of information.
the second word (the one after ``error'') is now the name of
the routine which caused the error.  Thus, in the example
below, the throw command has an extra ``in'' in it.

The example at the top of the right-hand column on the fourth page
(page 56 in the Usenix proceedings) uses an obsolete version of the
fork builtin.  The in function should now be

	fn in dir cmd {
		if {~ $#dir 0} {
			throw error in 'usage: in dir cmd'
		}
		fork {		# run in a subshell
			cd $dir
			$cmd
		}
	}

The pipe timing example from the paper may not work on your system.
It depends on having a version of time(1) that understands es, either
by building it in to es or having an external time use the SHELL
environment variable.  Es will include a (minimal) time function if
it is built with BUITIN_TIME.