From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4014439743ecf959 X-Google-Attributes: gidfee84,public From: pdf@morgan.ucs.mun.ca (Paul David Fardy) Subject: Re: "No match" message - whats it mean?? Date: 1996/06/12 Message-ID: <4pm8n3$ib4@coranto.ucs.mun.ca>#1/1 X-Deja-AN: 159795364 references: <31B7B649.471C@epo.gov.on.ca> <31BC63A5.146E@epo.gov.on.ca> <4pi4gf$fmr@news.iastate.edu> <31BE2876.5520@epo.gov.on.ca> organization: Memorial University of Newfoundland newsgroups: comp.unix.osf.osf1 Juan Laguna 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 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 |