[4487] in testers
What should athdir do w/ no support?
daemon@ATHENA.MIT.EDU (John Hawkinson)
Wed Jun 21 22:37:46 2000
Date: Wed, 21 Jun 2000 22:37:37 -0400 (EDT)
Message-Id: <200006220237.WAA04894@bobbi-harlow.mit.edu>
To: testers@mit.edu
From: John Hawkinson <jhawk@MIT.EDU>
What should athdir do when the locker has no support
for the architecture in question?
It seems to return the null string now, which seems misleading.
The manpage doesn't talk about what it does in such a case --
I think it should say one way or the other. It seems like
returning an error would be best.
I noticed this trying to run from a sun4x_57 machine with
ATHENA_SYS_COMPAT unset:
[bobbi-harlow!jhawk] ~> sh -x /mit/acro/bin/acroread
/mit/acro/bin/acroread: /mit/acro/bin/acroread: cannot open
[bobbi-harlow!jhawk] ~> sh -x /mit/acro/arch/${ATHENA_SYS}/bin/acroread
+ :
+ eval exec perl -S $0 "$@"
+ exec perl -S /mit/acro/arch/sun4x_57/bin/acroread
/mit/acro_v4.0/arch/sun4x_57/bin/acroread: /bin/acroread: not found
[bobbi-harlow!jhawk] ~> sh -x /mit/acro_v4.0/arch/sun4x_57/bin/acroread
+ attach -n -q infoagents
ACRO_TOP=/mit/acro_v4.0
+ export ACRO_TOP
+ athdir -f /mit/acro_v4.0/distrib/%s
ACRODIST_HOME=
+ export ACRODIST_HOME
+ [ -r /mit/jhawk/.weblink ]
+ exec /bin/acroread
/mit/acro_v4.0/arch/sun4x_57/bin/acroread: /bin/acroread: not found
But of course:
[bobbi-harlow!jhawk] ~> env ATHENA_SYS_COMPAT=sun4x_56 athdir -f /mit/acro_v4.0/distrib/%s
/mit/acro_v4.0/distrib/sun4x_56
[bobbi-harlow!jhawk] ~> machtype -L
8.4.4
--jhawk