[4114] in Athena Bugs

home help back first fref pref prev next nref lref last post

/usr/athena/lib/init/login

daemon@ATHENA.MIT.EDU (John Carr)
Fri Feb 2 00:32:02 1990

To: bugs@ATHENA.MIT.EDU
Date: Fri, 02 Feb 90 00:31:47 EST
From: John Carr <jfc@ATHENA.MIT.EDU>

This file tests the value of the "term" variable in an if statement
without quoting it.  This will fail when $term contains spaces.  The
line

	if (($term == switch) || ($term == network)) then

should be replaced with

	if (("$term" == switch) || ("$term" == network)) then

and

	if (($term =~ xterm*) && (! $?DISPLAY)) then

should be replaced with

	if (("$term" =~ xterm*) && (! $?DISPLAY)) then

  --John Carr

home help back first fref pref prev next nref lref last post