[11541] in Athena Bugs

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

bugs in sun do_update script

daemon@ATHENA.MIT.EDU (Calvin Clark)
Tue Dec 14 06:47:56 1993

Date: Tue, 14 Dec 93 06:47:30 -0500
From: Calvin Clark <ckclark@MIT.EDU>
To: bugs@MIT.EDU
Cc: rel-eng@MIT.EDU

The do_update script has two lines with spurious spaces at the
ends of the line after \.  This caused deathtongue to fail to
update.  These are the lines that need fixing:

; egrep -n '\\[ ]+$' /afs/rel-eng/system/sun4m_51/srvd.76/usr/athena/lib/update/do_update | cat -t
99:       mpublic="       /etc/resolv.conf \
107:       mpublic="       /etc/resolv.conf \

You must either remove the whitespace at the ends of these lines or
remove the \'s entirely.  (Which you can do since:

foo="bar
     quux"

is perfectly legal in sh.

foo="bar \
     quux"

is okay too, but if you have spaces or tabs after the \,
$foo will be the words:

bar \ quux

which is obviously not what you want.)

-Calvin

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