help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-nano] pipe to nano


From: Chris Allegretta
Subject: Re: [Help-nano] pipe to nano
Date: Mon, 20 Jan 2014 22:17:45 -0500

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
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]