[t]csh => Pass var containing multiline string to an alias
Domagoj Smolčić
rank1seeker at gmail.com
Thu Feb 6 18:15:58 UTC 2020
On Thu, 06 Feb 2020 17:29:03 +0000
Jamie Landeg-Jones <jamie at catflap.org> wrote:
> 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
Yep Jamie,
It worked!
With & without additional \ char in t_var.
I wasn't even avare of :q operator.
Thx!
Domagoj Smolčić
More information about the freebsd-hackers
mailing list