Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Tilde expansion in vi and ex
@ 1994-07-22 13:47 Greg Pratt
  1994-07-24  1:22 ` Peter da Silva
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Pratt @ 1994-07-22 13:47 UTC (permalink / raw)


I've come across this problem in vi, but I'm not certain that it isn't a
"feature" :) so I thought I would mention it here.

Under Ultrix (and SunOS, for that matter), I could specify ":r ~/filename"
and expect "filename" in my home directory to be read into the current
buffer.  Under OSF/1 2.0, however, it produces this error:

    Too many file names

The same problem, not surprisingly, shows up under ex (since this was an ex-
style command).  But does anyone know _why_ it is happening?

-- 
Gregory Pratt                        Rochester Institute of Technology
Systems Programmer Assistant         103 Lomb Memorial Drive
Information Systems & Computing      Rochester, NY  14623-5608


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tilde expansion in vi and ex
  1994-07-22 13:47 Tilde expansion in vi and ex Greg Pratt
@ 1994-07-24  1:22 ` Peter da Silva
  1994-07-25 14:22   ` Frank Wortner
  0 siblings, 1 reply; 5+ messages in thread
From: Peter da Silva @ 1994-07-24  1:22 UTC (permalink / raw)


In article <1994Jul22.134729.13017@ultb.isc.rit.edu>,
Greg Pratt <glp5941@burn.isc.rit.edu> wrote:
> Under Ultrix (and SunOS, for that matter), I could specify ":r ~/filename"
> and expect "filename" in my home directory to be read into the current
> buffer.  Under OSF/1 2.0, however, it produces this error:

>     Too many file names

> The same problem, not surprisingly, shows up under ex (since this was an ex-
> style command).  But does anyone know _why_ it is happening?

You have some command in your .cshrc that generates output when invoked
in this way. Look for an unguarded "set prompt" or an "stty".

(as an aside, that csh doesn't call .login on an "rlogin" is a serious
 mistake, since it encourages people to put spam like "stty" into their
 .cshrc files. It should call a ".rlogin" or similar file in that case).
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tilde expansion in vi and ex
  1994-07-24  1:22 ` Peter da Silva
@ 1994-07-25 14:22   ` Frank Wortner
  1994-07-25 17:38     ` Peter da Silva
  1994-07-26 15:00     ` Torbj|rn Lindgren
  0 siblings, 2 replies; 5+ messages in thread
From: Frank Wortner @ 1994-07-25 14:22 UTC (permalink / raw)



In article <id.HSHB1.6C6@nmti.com>, peter@nmti.com (Peter da Silva) writes:

|>(as an aside, that csh doesn't call .login on an "rlogin" is a serious
|> mistake, since it encourages people to put spam like "stty" into their
|> .cshrc files. It should call a ".rlogin" or similar file in that case).

Seems to work for me:

	Script started on Mon Jul 25 10:15:43 1994
	$ rlogin niagara
	Password:
	Last login: Mon Jul 25 10:14:35 from deleted
	
	DEC OSF/1 V2.0 (Rev. 250); Fri May 27 11:48:41 EDT 1994
	DEC OSF/1 V2.0 Worksystem Software (Rev. 240)
	This is .login
	niagara> logout
	$

The "This is .login" is an echo placed in .login.  Something must be
different if you're not seeing this.

					Frank





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tilde expansion in vi and ex
  1994-07-25 14:22   ` Frank Wortner
@ 1994-07-25 17:38     ` Peter da Silva
  1994-07-26 15:00     ` Torbj|rn Lindgren
  1 sibling, 0 replies; 5+ messages in thread
From: Peter da Silva @ 1994-07-25 17:38 UTC (permalink / raw)


Oh good, looks like DEC or OSF fixed that in OSF1. It's not standard BSD csh
behaviour.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tilde expansion in vi and ex
  1994-07-25 14:22   ` Frank Wortner
  1994-07-25 17:38     ` Peter da Silva
@ 1994-07-26 15:00     ` Torbj|rn Lindgren
  1 sibling, 0 replies; 5+ messages in thread
From: Torbj|rn Lindgren @ 1994-07-26 15:00 UTC (permalink / raw)


In article <1994Jul25.142219.26630@datum.nyo.dec.com>,
Frank Wortner <frank@nyo.dec.com> wrote:
>The "This is .login" is an echo placed in .login.  Something must be
>different if you're not seeing this.

Well, the standard /bin/csh does *NOT* do this on our Alphas that runs
OSF/1 2.0.

uname -a reports:
OSF1 aesrv0 V2.0 250 alpha

This isn't a problem since we're using tcsh 6.05 as the standard
shell :) Tcsh does read the .login when someone does a rlogin.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-07-26 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-22 13:47 Tilde expansion in vi and ex Greg Pratt
1994-07-24  1:22 ` Peter da Silva
1994-07-25 14:22   ` Frank Wortner
1994-07-25 17:38     ` Peter da Silva
1994-07-26 15:00     ` Torbj|rn Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox