[Remind-Fans] You can't escape a [. The *only* way to get a literal [ in a reminder is ...

remind-fans at trodman.com remind-fans at trodman.com
Fri Nov 9 17:37:08 EST 2018


On Fri 11/9/18 16:02 -0500 Users of Remind wrote:
>On Fri, 09 Nov 2018 10:39:23 -0600
>remind-fans at trodman.com wrote:
>
>>     $ remind -z <( echo REM AT $(date --date "now +1 min" '+%H:%M') MSG 'hi \[#' )
>> /dev/fd/63(2): Illegal character `#'
>
>You can't escape a [.  The *only* way to get a literal [ in a reminder is
>as follows:
>
>REM MSG ##["["]##balancer
>
>That's kind of ugly, so you could do:
>
>SET b "##[##balancer"
>
>REM MSG [b]

Thanks Dianne.  Both solns are fine.

I tested one as shown:

    $ remind -z <( echo SET b \"##[##balancer\";echo REM AT $(date --date "now +1 min" '+%H:%M') MSG 'hi [b]' )
    hi ##[##balancer

--
Tom


More information about the Remind-fans mailing list