[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
debug*.sh assume "." in $PATH
From: |
Pavel Roskin |
Subject: |
debug*.sh assume "." in $PATH |
Date: |
Fri, 1 Dec 2000 10:28:09 -0500 (EST) |
Hello!
The debug scripts created by the testsuite call in without path. I never
have "." in $PATH, so it's an annoyance for me.
Although the testsuite sets the PATH, the debug scripts are meant to be
run by hand as well. When you run "$(SHELL) testsuite" $0 expands to
just "testsuite" in bash-1.14.7.
I think it's better to hardcode the word "testsuite" than to rely on $0.
ChangeLog:
* tests/atgeneral.m4 (AT_INIT): Debug scripts should not assume
that the current directory is in $PATH.
___________________
Index: tests/atgeneral.m4
--- tests/atgeneral.m4 Wed Nov 29 09:33:24 2000
+++ tests/atgeneral.m4 Fri Dec 1 10:08:40 2000
@@ -265,7 +265,7 @@
for at_group in $at_failed_list; do
echo $at_n " $at_group$at_c"
( echo "#! /bin/sh"
- echo 'exec '"$[0]"' -v -d '"$at_group"' ${1+"address@hidden"}'
+ echo 'exec ./testsuite -v -d '"$at_group"' ${1+"address@hidden"}'
echo 'exit 1'
) >debug-$at_group.sh
chmod +x debug-$at_group.sh
___________________
Regards,
Pavel Roskin
- debug*.sh assume "." in $PATH,
Pavel Roskin <=