${//} is a bash feature so you will need to run your script with bash, #()
will use /bin/sh by default. Change it to #(bash /path/to/script).

On Tue, 20 Oct 2020 at 14:56, Cecil Westerhof <[email protected]>
wrote:

> I like to get a little bit of useful information in my statusline. So I
> have the following script:
>     msg="$(date +%F)$(uptime)"
>     # msg=${msg/ load average:/}
>     echo ${msg}
>
> In tmux.conf I have:
>     set -g status-right         '#(infoStatusline)'
>     set -g status-right-length  80
>
> The above script works with the second line commented out. But when I
> remove the comment it does not work anymore. The script gives the output I
> want when called from the command line, but the tmux status line becomes
> blank.
>
> What is happening here and how do I solve it?
>
> --
> Cecil Westerhof
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/CAG-LmmDMBRCpxTMveBPg28JpGXvJfg1hQzqA4tVtBbMuo07TiQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/tmux-users/CAG-LmmDMBRCpxTMveBPg28JpGXvJfg1hQzqA4tVtBbMuo07TiQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcH5HHCbWT2WrDTQqHiQ-uZ%2BMg%3Ds2Vd4b5Jn0vdJOfs6rA%40mail.gmail.com.

Reply via email to