Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Feb 2020 17:29:03 +0000
From:      Jamie Landeg-Jones <jamie@catflap.org>
To:        rank1seeker@gmail.com, hackers@freebsd.org
Subject:   Re: [t]csh => Pass var containing multiline string to an alias
Message-ID:  <202002061729.016HT411059139@donotpassgo.dyslexicfish.net>
In-Reply-To: <20200206175513.00006006@gmail.com>
References:  <20200206175513.00006006@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Domagoj Smolčić <rank1seeker@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002061729.016HT411059139>