Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2020 19:14:12 +0100
From:      Domagoj =?UTF-8?Q?Smol=C4=8Di=C4=87?= <rank1seeker@gmail.com>
To:        Jamie Landeg-Jones <jamie@catflap.org>
Cc:        hackers@freebsd.org
Subject:   Re: [t]csh => Pass var containing multiline string to an alias
Message-ID:  <20200206191412.00001298@gmail.com>
In-Reply-To: <202002061729.016HT411059139@donotpassgo.dyslexicfish.net>
References:  <20200206175513.00006006@gmail.com> <202002061729.016HT411059139@donotpassgo.dyslexicfish.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 06 Feb 2020 17:29:03 +0000
Jamie Landeg-Jones <jamie@catflap.org> wrote:

> Domagoj Smol=C4=8Di=C4=87 <rank1seeker@gmail.com> wrote:
>=20
> > 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 '"'.
> > =20
>=20
> 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.
>=20
> I.e.
>=20
> try
>=20
> alias t_name    "aa $t_var:q bb"
>=20
> Let me know if this works!
>=20
> Cheers, Jamie


Yep Jamie,

It worked!
With & without additional \ char in t_var.
I wasn't even avare of :q operator.

Thx!
Domagoj Smol=C4=8Di=C4=87



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