Skip to content

Commit

Permalink
UNIX shell script testing - Fix missing presence of $TERM environment…
Browse files Browse the repository at this point in the history
… variable.

Set default TERM to xterm-basic
  • Loading branch information
noresources committed Oct 31, 2024
1 parent b71d28b commit c2a8fac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/xsh/testprogram.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
</xsl:with-param>
</xsl:call-template>
<xsl:value-of select="$sh.endl" />
<xsl:text>[ -z "${TERM}" ] &amp;&amp; export TERM=xterm-basic</xsl:text>
<xsl:value-of select="$sh.endl" />
<xsl:text>NORMAL_COLOR="$(tput sgr0)"</xsl:text>
<xsl:value-of select="$sh.endl" />
<xsl:text>ERROR_COLOR="$(tput setaf 1)"</xsl:text>
Expand Down

0 comments on commit c2a8fac

Please sign in to comment.