[17565] in Athena Bugs
matlab launch script under /bin/sh, NetBSD 1.4.1
daemon@ATHENA.MIT.EDU (Brad Thompson)
Fri Feb 18 18:36:09 2000
Message-Id: <200002182336.SAA08729@snorklewacker.mit.edu>
To: bugs@MIT.EDU
Date: Fri, 18 Feb 2000 18:36:03 -0500
From: Brad Thompson <yak@MIT.EDU>
The matlab startup script breaks under NetBSD 1.4.1 when launched
by /bin/sh. It relies on the (common) behavior of shells to try
to use themselves to execute programs that execl() fails on. One
fix is for me to type "sh `which matlab`" whenever I want to run
matlab. The other is to put a "#!/bin/sh" or "#!/usr/athena/bin/perl -w"
line at top of the wrapper script, which should proably be there anyway.
yak