[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debug*.sh assume "." in $PATH
From: |
Pavel Roskin |
Subject: |
Re: debug*.sh assume "." in $PATH |
Date: |
Fri, 1 Dec 2000 19:46:08 -0500 (EST) |
Hello, Alexandre!
> > I think it's better to hardcode the word "testsuite" than to rely on $0.
>
> I'd rather add ${CONFIG_SHELL-/bin/sh}, so that it will work even if
> testsuite is not executable or the kernel is not smart enough to run
> the shell to interpret shell-scripts.
Thank you! That's the right solution. I'm applying it.
Regards,
Pavel Roskin
_______________________
Index: ChangeLog
--- ChangeLog Thu Nov 30 13:36:43 2000
+++ ChangeLog Fri Dec 1 19:44:31 2000
@@ -1 +1,7 @@
+2000-12-01 Pavel Roskin <address@hidden>
+
+ * tests/atgeneral.m4 (AT_INIT): Use ${CONFIG_SHELL-/bin/sh}
+ to run the testsuite from the debug scripts.
+ Suggested by Alexandre Oliva.
+
2000-11-30 Akim Demaille <address@hidden>
Index: tests/atgeneral.m4
--- tests/atgeneral.m4 Wed Nov 29 09:33:24 2000
+++ tests/atgeneral.m4 Fri Dec 1 18:52:13 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 ${CONFIG_SHELL-/bin/sh} '"$[0]"' -v -d '"$at_group"'
${1+"address@hidden"}'
echo 'exit 1'
) >debug-$at_group.sh
chmod +x debug-$at_group.sh
_______________________