|
From: | Markus Bergholz |
Subject: | Re: [Help-nano] pipe to nano |
Date: | Thu, 23 Jan 2014 11:29:07 +0100 |
Hi markus,
I'm surprised that the command line you tried actually does that,
though I guess it makes sense. The normal way to pipe data into nano
is to use the - argument
cmd | nano -
I hope this helps!
On 1/18/14, Markus Bergholz <address@hidden> wrote:
> Hi
> any chance to pipe into nano without nano is immediately closing?
>
>
> address@hidden/tmp]
> └──╼ export LC_ALL=C
> address@hidden/tmp]
> └──╼ export EDITOR=nano
> address@hidden/tmp]
> └──╼ echo -e "test\ntemplate" | $EDITOR testfile.md
> Received SIGHUP or SIGTERM
>
> Buffer written to testfile.md.save
> address@hidden/tmp]
> └──╼ cat testfile.md.save
> test template
>
>
>
> greetings
> Markus
>
[Prev in Thread] | Current Thread | [Next in Thread] |