Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14285

Re: Directing into a variable doesn't work

From Piotr Grzybowski <narsil.pl@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Directing into a variable doesn't work
Date 2018-06-28 14:12 +0200
Message-ID <mailman.2689.1530187946.1292.bug-bash@gnu.org> (permalink)
References <bd7807e251dfeb07ef1247a60f946551b9f61bd0@webmail.dreamhost.com>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

hello,

 I wanted to play around with this idea, and see how it works. Quick and dirty patch (against devel@c181950a89c0f0ca4a3ae2480b783da2f7de9565) is attached. Just modified parser and hardcoded tempfile /tmp/v_save.bash.temp. result:

bash-5.0$ echo 'hello a' >>> a; echo $a
hello a 

 If you don't mind we can get it off the list, and see if we can workout a better way to bind data from redirection with variable, and come up with something. If not, maybe you will find something useful in this patch, I have no idea if I will be able to present any decent version of it.

cheers,
pg
 

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Directing into a variable doesn't work Piotr Grzybowski <narsil.pl@gmail.com> - 2018-06-28 14:12 +0200

csiph-web