$0 is set incorrectly
|Reported by:||andreasf||Owned by:||axeld|
|Has a Patch:||no||Platform:||All|
$0 should contain the (relative) path to the executable, not the command used to call it.
The following test script:
#!/bin/sh echo $0
./test.sh on BeOS but
test.sh on Haiku.
This seems to keep aclocal et al. from working, since $0 returns
aclocal but the path to call itself is e.g.