Welcome | spec | C-PLOT | Support | Downloads | Users | Contact
Contents -> history  
spec Help pages

NAME

history - command recall facility (basic)

SYNOPSIS

history [n|-n]

DESCRIPTION

The history command lists the 1000 most recently entered commands. With the option n, only the n most recent commands are listed. A -n lists the commands in reverse order.

The history is saved when spec exits and restored when spec restarts with the same state files.

The rest of this document describes the CSS-provided version of the history syntax. If your site administrator has chosen to include the optional GNU readline history code when spec was installed, refer to the readline help file, instead.

The history feature lets you recall previous commands. The syntax is a subset of that of the csh history command. Examples of the recognized syntax are:
 !! - redo the previous command.
 !14 - redo command number 14.
 !-2 - redo the second to previous command.
 !asc - redo the last command that began with asc.
 !asc -10000 - As above and append -10000 to the command.

The command number is prepended to the spec prompt as an aid in using the history feature. Only commands typed at the keyboard are remembered for history, and no more than 1000 commands are retained. The history feature cannot be used in command files.

Command recall must occur at the beginning of a line. Text may follow the command-recall word to extend that command.

Appending :s/left/right/ to a recalled command will modify the first occurrence of the string left in the recalled command to the characters right. The delimiter of the left and right strings may be any character. The final delimiter is optional. If left is empty, the last entered left string is used as the pattern to match.

In addition, ^left^right^ at the start of a line is shorthand for !-1:s/left/right/. In this case, the circumflex (^) must be used as the delimiter. The final delimiter is optional.

SEE ALSO

csh in the UNIX User's Manual
  readline

[Help File Index]


... Meeting the software needs of scientists since 1985 ...

Return to CSS home page ...
Last Formatted May 12, 2012
Last Updated 02/28/01
Send comments, queries, suggestions to info@certif.com

© 1995-2003 Certified Scientific Software. All rights reserved