|
An easy way out
Why is it that there can't be a single way that's guaranteed to get you out of ANY program?
We use programs such as telnet and ssh (and others) and we're used to running an exit command to get out of them - so why, or why, does it have to be quit to get out of FTP?
[Ctrl-C] (Control - C) will get you out of most programs in an emergency - like if you've written your own program that's in an infinite loop. But ... it won't get you out of vi. To get out of vi, you can use ZZ or :q![Enter] or two or three other alternatives.
All of which help to keep life fun and interesting ;-) (written 2005-03-17 06:51:24)
| Commentator | says ... | | Bruce James: | vi derives from ex and ed, which can handle data streams (which may contain (Ctrl-C)?) so perhaps thats why vi uses other exit commands..
The others I guess were the preference of the people who wrote the spec, or wrote the program.
And telnet uses (Ctrl-]) to get to its command mode before you can exit it using 'quit'. Typing 'exit' while logged in just exits the current shell.
And (Ctrl-D) will get you out of the shell and some interactive programs by sending an EOF. (ed will end with a (Ctrl-D) but not a (Ctrl-C))
It's all there to confuse the uninitiated... ;-)
B
(comment added 2005-03-17 10:17:46) |
Associated topics are indexed under A101 - Web Application Deployment - Linux -An Introduction For Users
Some other Articles
Finding the right holesA West End showWIBNIFWe dont stand stillAn easy way outUse me, but use me effectivelyExtreme trainingWhen to bless a Perl variableI'm not blogging itGetting your examples, my examples and the data files after your course
|
2259 posts, page by page
Link to page ... 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, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46 at 50 posts per page
This is a page archived from The Horse's Mouth at
http://www.wellho.net/horse/ -
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).
|
|