[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | -={ H A C K E R S }=- |
Notice: | Write locked - see NOTED::HACKERS |
Moderator: | DIEHRD::MORRIS |
|
Created: | Thu Feb 20 1986 |
Last Modified: | Mon Aug 03 1992 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 680 |
Total number of notes: | 5456 |
453.0. "Another use for apostrophe" by DELNI::CANTOR (Dave C.) Sat Apr 25 1987 02:29
The apostrophe command can be used as a strike-out in command
recall:
Say you've just entered a longish command like:
$ BACKUP DISK$FOOBAR:[USERNAME...] DESTINATION:USERNAME.BCK/SAVE
Now, you want to issue the same sort of command, but for a
different disk / directory. You recall the command with
control-B, but to edit the command requires both insert and
overstrike mode. To do this, I leave my terminal set to
overstrike mode, hit control-H to go to the beginning of the
line, and type over the appropriate parts of the command.
Whenever any part of the new command is shorter than the
corresponding part of the old command, I use the apostrophe
to strike out the characters, thus:
$ BACKUP DISK$BAZ''':[ANOTHER'...] DESTINATION:ANOTHER'.BCK/SAVE
This works provided the strings of apostrophes all precede
punctuation marks because, a consecutive pair (the symbol name
is null) they expands to an empty string, and a single apostrophe
preceding a punctuation mark also expands to an empty string.
Saves toggling between overstrike and insert modes.
Totally unsupported, of course.
Dave C.
T.R | Title | User | Personal Name | Date | Lines
|
---|