aboutsummaryrefslogtreecommitdiff
path: root/pkg/language/doc/unlearn.hlp
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/language/doc/unlearn.hlp
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/language/doc/unlearn.hlp')
-rw-r--r--pkg/language/doc/unlearn.hlp61
1 files changed, 61 insertions, 0 deletions
diff --git a/pkg/language/doc/unlearn.hlp b/pkg/language/doc/unlearn.hlp
new file mode 100644
index 00000000..035a9a51
--- /dev/null
+++ b/pkg/language/doc/unlearn.hlp
@@ -0,0 +1,61 @@
+.help unlearn Feb86 language
+.ih
+NAME
+unlearn -- restore initial defaults for parameters
+.ih
+USAGE
+unlearn name [name ...]
+.ih
+PARAMETERS
+.ls name
+An IRAF task or package name.
+.le
+.ih
+DESCRIPTION
+Normally when a task terminates the values of the query mode task parameters
+used are stored in the parameter file on disk, appearing as the new defaults
+the next time the task is run. The \fIunlearn\fR command instructs the CL
+to forget any task parameters it might have learned and to use the initial
+default values the next time the task is run. If a tasks parameters have
+been cached, then they are removed from the parameter cache.
+
+If a package name is specified all the tasks in the package are unlearned.
+.ih
+EXAMPLES
+1. Unlearn the parameters for the delete and plot.graph tasks.
+
+ cl> unlearn delete plot.graph
+
+2. Unlearn the parameters for all tasks in the \fIdataio\fR package.
+
+ cl> unlearn dataio
+
+3. To unlearn the parameters for all tasks in the system, log out of the
+CL and run \fImkiraf\fR, or enter the following:
+
+.nf
+ cl> chdir uparm
+ cl> delete *.par
+.fi
+.ih
+BUGS
+It is possible for the parameter set for a task to become corrupted,
+e.g., if the CL is interrupted while it is updating the parameter file on
+disk, causing a truncated file to be written. If this should occur one
+will get error messages complaining about illegal arguments or parameters
+not found when the task is run. The fix is to "unlearn" the parameters
+for the task.
+
+When the CL fetches the parameters for a task, it checks to see if the
+system defaults have been updated more recently than the user's copy of
+the parameter set, and uses the system copy if it is more recent, after
+printing a message to warn the user. This is done by comparing the file
+dates for the system and user parameter sets. On VMS, it is easy for the
+modify date of the system copy of the parameter set to become updated
+even though the file data has not been modified, causing an annoying warning
+message to be printed when the task is later run. Should this occur,
+the best solution is to unlearn all affected parameter sets.
+.ih
+SEE ALSO
+cache, update, lparam, eparam
+.endhelp