~ubuntu-branches/ubuntu/natty/expect-tcl8.3/natty

« back to all changes in this revision

Viewing changes to expect.man

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-07-30 22:33:52 UTC
  • mfrom: (2.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080730223352-43j8vqcvoife73ck
Tags: 5.43.0-6
* Install expectk in expectk-tk8.3. Closes: #492288.
* Include expect scripts in expect-tcl8.3-dev as binaries, not as
  examples. Closes: #461357.
* expect-tcl8.3-dev: Depend on tk8.3-dev.
* Acknowledge NMU. Closes: #443393.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
may also be invoked implicitly on systems which support the #! notation
109
109
by marking the script executable, and making the first line in your script:
110
110
 
111
 
    #!/usr/bin/expect \-f
 
111
    #!/usr/local/bin/expect \-f
112
112
 
113
113
Of course, the path must accurately describe where
114
114
.B Expect
115
 
lives.  /usr/bin is just an example.
 
115
lives.  /usr/local/bin is just an example.
116
116
 
117
117
The
118
118
.B \-c
207
207
original arguments (including the script name) in the variable
208
208
.IR argv .
209
209
 
210
 
    #!/usr/bin/expect \-\-
 
210
    #!/usr/local/bin/expect \-\-
211
211
 
212
212
Note that the usual getopt(3) and execve(2) conventions must be observed
213
213
when adding arguments to the #! line.
2372
2372
.nf
2373
2373
 
2374
2374
    set env(SHELL) /bin/sh
2375
 
    set env(HOME) /usr/bin
 
2375
    set env(HOME) /usr/local/bin
2376
2376
 
2377
2377
.fi
2378
2378