In both dwall.sh and test.sh, colour codes are set (e.g. for different lines of usage) with most of them being bold, but the bold attribute is not later reset at the end of the script. This means that prompts without colour codes will be left incorrectly bolded after running the script:
or prompts that set colour without setting / unsetting the bold attribute will be incorrectly bolded:
Usually other programs will reset attributes / colour such that such behaviour does not happen, for example ls:
We can see that despite changing colour and attributes multiple times ls eventually resets the colour and bold attribute for the following output to be formatted.
In both
dwall.sh
andtest.sh
, colour codes are set (e.g. for different lines of usage) with most of them being bold, but the bold attribute is not later reset at the end of the script. This means that prompts without colour codes will be left incorrectly bolded after running the script:or prompts that set colour without setting / unsetting the bold attribute will be incorrectly bolded:
Usually other programs will reset attributes / colour such that such behaviour does not happen, for example
ls
:We can see that despite changing colour and attributes multiple times
ls
eventually resets the colour and bold attribute for the following output to be formatted.