From: pdf@morgan.ucs.mun.ca (Paul David Fardy)
Subject: Re: "No match" message - whats it mean??
Date: 1996/06/12 [thread overview]
Message-ID: <4pm8n3$ib4@coranto.ucs.mun.ca> (raw)
In-Reply-To: 31BE2876.5520@epo.gov.on.ca
Juan Laguna <lagunaj2@epo.gov.on.ca> wrote:
}Juan Laguna wrote:
}> My Alpha 3000/300 pops up the message "No Match." just before the Hello
}> messsage appears when i log in.
}stty erase ^?
John Hascall wrote:
> stty erase '^?'
Juan Laguna <lagunaj2@epo.gov.on.ca> writes:
>Thanks a 10^6, John!!! It seems to work OK. I tested it from AML as well.
>BTW, when i log in, the last two messages in the dxconsole are...
> stty: tcgetattr: Not a typewriter
> Starting Application Process 11245 "DECterm"
>Whats the "stty ..." line mean?
Actually the stty command shouldn't be in your .cshrc; move it to your
.login file. The command means "set tty erase character to delete".
Terminals used to be teletypewriters hardwired to the system;
teletypewriter is abbreviated as tty. The command operates on its
standard input file handle which will be your terminal if you type the
command at the prompt and will usually be your terminal if run from
your .login. You only need to set the erase character once, when you
first connect to the system, so the .login file is the right place
to put the command.
Since, the csh runs the .cshrc file with (almost) every shell script
and shell command, the stty command will be executed when you run shell
escapes from editors or run scripts as background jobs. Typically the
input for the command is a pipe stream or a plain file. You can't set
terminal options on non-terminal files; you get the error "not a
typewriter".
The default is backspace (noted as Ctrl-H and, for stty, ^h) and your
command redefines it to delete (noted as Ctrl-?, and, for stty, ^?).
I suspect that the command was actually entered as
stty erase [Ctrl-V][Delete]
The delete would be seen as ^?, but it would actually be only one
character. However, if someone used X windows to cut and paste the
command between systems, the cut would read two characters and you'd
actually get a question mark in the destination file. Using the
quoting and four characters as John showed is cleaner because it
behaves better when you print, cat, or cut-n-paste the file.
Along with the rule "Don't put stty in your .cshrc.", you might add
Don't put "mesg" or "biff" in your .cshrc.
-- these programs also change terminal files.
Don't generate output from your .cshrc.
-- this confuses programs (like vi) that use your shell to run
commands and then read back the output; your output jumbles
the data the program expects to get back.
Don't create a prompt, change it only if it exists.
-- under many implementations of C shell, setting prompt
produces output. The solution is to use the if shown
in your .cshrc ("if it exists, change it").
if ($?prompt) set prompt="myprompt. "
Don't use the C shell; use the Korn shell, instead. :-)
Paul Fardy
--
Paul David Fardy | pdf@morgan.ucs.mun.ca
Computing and Communications | pdf@InfoNET.st-johns.nf.ca
Memorial University of Newfoundland |
St. John's, NF A1C 5S7 |
prev parent reply other threads:[~1996-06-12 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-07 4:00 "No match" message - whats it mean?? Juan Laguna
1996-06-07 4:00 ` John Hascall
1996-06-10 4:00 ` Juan Laguna
1996-06-10 4:00 ` John Hascall
1996-06-11 4:00 ` Juan Laguna
1996-06-12 4:00 ` Paul David Fardy [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox