tests/utils/env.sh.in: make it portable for Bash and Zsh
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Feb 2024 03:35:49 +0000 (22:35 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Feb 2024 18:59:45 +0000 (13:59 -0500)
commit4847ff77fd02c67f994b09f53babcbe5086b07dd
tree57f391745d19fd9e33f223826e66a968f553e228
parent66a1e0899ac7588a560e9ffe306e06345989d29c
tests/utils/env.sh.in: make it portable for Bash and Zsh

The syntax

    ${!varname:-}

isn't valid in Zsh.

To make it possible to source the generated `env.sh` interactively, make
this (more) portable.

Now _set_var_def() also sets if the variable is set but empty, but I
don't think it's an issue here.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I07d49199c403ac24d569d383fd8bde2cf5b668e6
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11769
tests/utils/env.sh.in
This page took 0.024773 seconds and 4 git commands to generate.