[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'run' script does not work on Solaris 10
From: |
Jose E. Marchesi |
Subject: |
Re: 'run' script does not work on Solaris 10 |
Date: |
Sun, 07 Mar 2021 20:17:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Bruno.
Hate it.
OK for master.
Thanks :')
> On Solaris 10, I see this:
>
> $ ./run poke
> ./run: syntax error at line 28: `s=$' unexpected
>
> The reason is that Solaris /bin/sh does not support $(...). You need to use
> the older syntax `...` instead. Here's a proposed patch.
>
>
>>From c30f51df5c235f0e5c92bd9d8dcf4f8daffd8793 Mon Sep 17 00:00:00 2001
> From: Bruno Haible <bruno@clisp.org>
> Date: Sun, 7 Mar 2021 16:07:37 +0100
> Subject: [PATCH] Make the 'run' script work on Solaris 10.
>
> * run.in: Use `...` syntax instead of $(...) syntax.
> ---
> run.in | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/run.in b/run.in
> index 05c5635..af8922b 100644
> --- a/run.in
> +++ b/run.in
> @@ -25,8 +25,8 @@
> #
> # ./run my_script # where my_script in turn calls poke
>
> -s=$(cd @abs_srcdir@ && pwd)
> -b=$(cd @abs_builddir@ && pwd)
> +s=`cd @abs_srcdir@ && pwd`
> +b=`cd @abs_builddir@ && pwd`
>
> # setup to run uninstalled poke
> PATH=$b/poke:$b/gui:$PATH
> @@ -43,7 +43,7 @@ export POKE_LOAD_PATH POKEDOCDIR POKEGUIDIR POKEMAPSDIR
>
> # Cheap way to find some use-after-free and uninit read problems with glibc
> MALLOC_CHECK_=1
> -random_val="$(@AWK@ 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null)"
> +random_val=`@AWK@ 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null`
> MALLOC_PERTURB_=$random_val
> export MALLOC_CHECK_ MALLOC_PERTURB_