Re: printf '%q ' "$_at_" alternative?

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Fri, 20 May 2016 19:37:49 +0200

On 20/05/2016 18:57, Max Ivanov wrote:
> Shell version of behaviour I am looking for (probably not portable,
> but nevertheless):
>
> ```
> #!/bin/sh
> printf "%q " "$_at_" >/tmp/runme
> exec /bin/sh /tmp/runme
> ```

  Your writer:
  redirfd -w 1 /tmp/runme dollarat -d ""

  Your reader+runner:
  redirfd -r 0 /tmp/runme withstdinas at importas -s -d "" at at
  $at

-- 
  Laurent
Received on Fri May 20 2016 - 17:37:49 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC