Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More zsh and ksh compatible.

  • Loading branch information...
commit 51a129ecd5ac180bf6379e8f7138e485b076d3b1 1 parent 481c832
@rocky authored
Showing with 18 additions and 4 deletions.
  1. +9 −0 acinclude.m4
  2. +3 −4 command/eval.sh
  3. +6 −0 configure.ac
View
9 acinclude.m4
@@ -0,0 +1,9 @@
+AC_DEFUN([AC_SUBST_DIR], [
+ ifelse($2,,,$1="$2")
+ $1=`(
+ test "x$prefix" = xNONE && prefix="$ac_default_prefix"
+ test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
+ eval echo \""[$]$1"\"
+ )`
+ AC_SUBST($1)
+])
View
7 command/eval.sh
@@ -46,15 +46,14 @@ _Dbg_add_help print \
'print *string* Print value of a substituted string.'
_Dbg_do_print() {
- local -r _Dbg_expr=${@:-"$_Dbg_last_print_args"}
- local dq_expr
+ typeset _Dbg_expr=${@:-"$_Dbg_last_print_args"}
+ typeset dq_expr
dq_expr=$(_Dbg_esc_dq "$_Dbg_expr")
- readonly dq_expr
### FIXME: something strange in zsh causes _Dbg_debugged_exit_code
# Not to be seen in _Dbg_do_eval if we don't have the bogus assignment
# below
- local foo=$_Dbg_debugged_exit_code
+ typeset foo=$_Dbg_debugged_exit_code
_Dbg_do_eval _Dbg_msg "$_Dbg_expr"
}
View
6 configure.ac
@@ -54,6 +54,12 @@ else
done
fi
+# Get the fully expanded name of pkgdatadir. This is used in zshdb.in
+# and dbg-main.sh.in and for installing debugger files.
+
+pkgdatadir=$datadir/zshdb
+AC_SUBST_DIR(PKGDATADIR, $pkgdatadir)
+
AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
AC_PROG_LN_S
AC_PATH_PROG(RM, rm, true)
Please sign in to comment.
Something went wrong with that request. Please try again.