iff we are a bareword.
Reported by Raja R Harinath.
+2001-10-05 Akim Demaille <akim@epita.fr>
+
+ * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
+ iff we are a bareword.
+ Reported by Raja R Harinath.
+
2001-10-05 Akim Demaille <akim@epita.fr>
* tests/m4sh.at (LINENO): New.
if test "x$as_lineno_1" = "x$as_lineno_2" ||
test "x$as_lineno_3" != "x$as_lineno_2";
then
- # Find who we are.
+ # Find who we are. Look in the path if we contain no path at all
+ # relative or not.
case $[0] in
- [[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
+ *[[\\/]]* ) as_myself=$[0] ;;
*) _AS_PATH_WALK([],
[test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && break])
;;