Re: Expanding a variable in a pipe
Len Laulainen <[email protected]> Sun, 26 Feb 2017 05:02:09 -0600
| Newsgroups | gmane.mail.procmail |
|---|---|
| Organization | Euler Solutions |
| Message-ID | <[email protected]> |
--===============1695632276==
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature";
boundary="=-NVMXMAzZRFmzQ+wL0hXJ"
--=-NVMXMAzZRFmzQ+wL0hXJ
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Try replacing your single ' with a double quote, the protect your inside
double quotes with backslashes:
curl -s -d "payload=3D{\"text\":\"${URL}\"}" https://=E2=80=A6=E2=80=A6
Len
On Sun, 2017-02-26 at 03:58 -0700, @lbutlr wrote:
> I have the following:
>=20
> | curl -s -d 'payload=3D{"text":"${URL}"}' https://=E2=80=A6=E2=80=A6
>=20
> But the command is executed with the exact string =E2=80=98${URL}=E2=80=
=99, I assume because it is inside single quotes.
>=20
> How do I expand this?
>=20
>=20
--=-NVMXMAzZRFmzQ+wL0hXJ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEABECAAYFAliytbEACgkQsouB53j/3axCJACfYssiPcpICKs0aMjFd5c/U54z
boEAnAoNLoOU1tdlFjeJFlSr1EtMMFSG
=vZvY
-----END PGP SIGNATURE-----
--=-NVMXMAzZRFmzQ+wL0hXJ--
--===============1695632276==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
[email protected]
https://mailman.rwth-aachen.de/mailman/listinfo/procmail
--===============1695632276==--