SUMMARY: vi gets "stty: : No such device or address"

From: Craig Mason (
Date: Fri Jan 17 1997 - 19:15:32 CST

Hi All,

I'm sorry it has taken me so long to get back to all of you but you know
how busy we can get. From the responses I got it seems I was the only
one that didn't know the answer to my own question. The reason my user
was getting those errors in vi is because in his .cshrc he had 2 stty
commands outside of an if statement for an interactive shell. What he
needed to do is put the stty commands inside the if statement in his
.cshrc like so -

if ( $?prompt ) then
        set history=32
        stty erase '^?'
        stty werase '^h'

Now vi wont read the stty commands when running unix commands from
within vi. I hope this is explained okay. Thanks everybody for all the

> Hi All,
> One of my users asked me why this happens and I can't seem to find
> the answer.
> When I vi test and do the command !!date it says
> stty: : No such device or address
> stty: : No such device or address
> Wed Jan 8 16:51:53 PST 1997
> !!date is supposed to replace the current line with the date.
> This happens on Solaris 2.4 & 2.5 as a typical user but it works
> fine for root. I compared the stty -a for the root and users windows,
> identical. As a typical user I sourced root .cshrc and compared env
> and they where the same, and the error or message still appeared. Any
> ideas?
> --
> Craig Mason System Administrator
> 800-333-4613 x3493

Craig Mason	System Administrator    

800-333-4613 x3493

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:43 CDT