[t]csh => Pass var containing multiline string to an alias
Jamie Landeg-Jones
jamie at catflap.org
Thu Feb 6 17:29:12 UTC 2020
Domagoj Smolčić <rank1seeker at gmail.com> wrote:
> So far so good, now alias:
> Double quotes are mandatory, else all ends up at 1 line
> --
> alias t_name "aa $t_var bb"
> --
> Error:
> Unmatched '"'.
>
I'm not able to test at the moment, but I think the :q operator should work,
to tell tcsh not to try and parse the results of the variablle.
I.e.
try
alias t_name "aa $t_var:q bb"
Let me know if this works!
Cheers, Jamie
More information about the freebsd-hackers
mailing list