[16272] in Athena Bugs

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

Re: olc_answers

daemon@ATHENA.MIT.EDU (Albert Dvornik)
Sun Aug 30 23:30:22 1998

To: Albert Dvornik <bert@MIT.EDU>
Cc: bug-olc@MIT.EDU
From: Albert Dvornik <bert@MIT.EDU>
In-Reply-To: Albert Dvornik's message of "Sun, 30 Aug 1998 23:26:29 EDT"
Date: Sun, 30 Aug 1998 23:30:13 EDT


Albert Dvornik <bert@MIT.EDU> writes:
> *** bugs:
> Yes, I think that's the way to go.  [Specifically, if the third field
> of packs/glue/specs is specified, I believe that rather than $0 should
> be used for the argv0.  Greg, if you agree, a patch is below.]

Of course, I forgot to include the patch.


*** packs/glue/Makefile	Thu Jun 11 14:41:25 1998
--- packs/glue/Makefile	Sun Aug 30 23:06:00 1998
***************
*** 53,61 ****
  	cd platform/${HOSTTYPE} && ${MAKE} $@
  
  ${ATTACHRUN}: specs template.sh
! 	set `grep '^$@[ 	]' specs`; locker=$$2; program=$${3-$$1}; \
! 		sed -e "s|@LOCKER@|$$2|g" \
! 			-e "s|@PROGRAM@|$$program|g" template.sh > $@
  
  sis: sis.in
  	bindir=`athdir -c -p /mit/infoagents -t bin`; \
--- 53,63 ----
  	cd platform/${HOSTTYPE} && ${MAKE} $@
  
  ${ATTACHRUN}: specs template.sh
! 	set `grep '^$@[ 	]' specs`; \
! 		locker=$$2; program=$${3-$$1}; argv0=$${3-'$$0'}; \
! 		sed -e "s|@LOCKER@|$$locker|g" \
! 			-e "s|@PROGRAM@|$$program|g" \
! 			-e "s|@ARGV0@|$$argv0|g" template.sh > $@
  
  sis: sis.in
  	bindir=`athdir -c -p /mit/infoagents -t bin`; \
*** packs/glue/template.sh	Thu Apr  9 00:02:42 1998
--- packs/glue/template.sh	Sun Aug 30 22:58:19 1998
***************
*** 1,2 ****
  #!/bin/sh
! exec /bin/athena/attachandrun @LOCKER@ @PROGRAM@ "$0" "$@"
--- 1,2 ----
  #!/bin/sh
! exec /bin/athena/attachandrun @LOCKER@ @PROGRAM@ "@ARGV0@" "$@"


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