GRUB Part II
Derek Martin
invalid at pizzashack.org
Fri Aug 29 18:26:29 EDT 2003
On Fri, Aug 29, 2003 at 05:47:44PM -0400, Kevin D. Clark wrote:
> > How do I type 'EOF' (What keystrokes ??)
>
> In your case, just type 'E', 'O', and 'F' at the beginning of a line,
> and then hit return.
>
> However, in a seeming paradox, there is no EOF file character in
> Unix... (-:
Even more ironically, that statement is both true and false. =8^)
It is true that Unix files do not end with a particular character, and
as such there is no EOF character. However, when typing on a
terminal, there is, in fact, a way to type EOF. How that is done is
revealed by stty -a:
speed 38400 baud; rows 64; columns 160; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
[much other output snipped]
Here (line 2), we see that EOF is signified by ^D, which is the normal
default on most Unix-like operating systems. It can be changed with
stty about as easily as it can be displayed.
> is called a "here-is" document in Unix shell parlance (by shell, I
> mean things like the Bourne, Korn, and Bash shells). Perl also
> supports this syntax, BTW.
FWIW, until fairly recently, I've only ever heard it called "here
documents" by Perl programmers... In every Unix-related class I've
taken prior to that, whether at a university or at a vendor's training
facility, it was referred to as "in-line redirection" instead.
--
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.
Replying to it will result in undeliverable mail.
Sorry for the inconvenience. Thank the spammers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030829/56878ac5/attachment.bin
More information about the gnhlug-discuss
mailing list