Re: Directing into a variable doesn't work

2018-06-25 Thread Peter Passchier
On 06/25/2018 08:11 PM, Chet Ramey wrote: > The answer is ultimately the same as it was last month: > > http://lists.gnu.org/archive/html/bug-bash/2018-05/msg00056.html Oh wow, you replied..! I never got this in my inbox somehow... I guess it is syntactic sugar (although Greg's post shows it isn

Re: Directing into a variable doesn't work

2018-06-24 Thread Peter Passchier
On 06/25/2018 12:27 AM, Robert Elz wrote: > That's not the real issue - rather it is that a here doc is presented to the > command beng run as a file descrptior OK, thanks, that makes sense. In the case of a here-variable, that would definitely be the case then. Peter

Re: Directing into a variable doesn't work

2018-06-24 Thread Peter Passchier
ter On 06/24/2018 05:38 PM, Martijn Dekker wrote: > Op 24-06-18 om 05:08 schreef Peter Passchier: >> With memory being abundant and filesystem access expensive, I want to >> put stdout and stderr of a command into variables (without needing to >> write to a file): >> &

Directing into a variable doesn't work

2018-06-23 Thread Peter Passchier
With memory being abundant and filesystem access expensive, I want to put stdout and stderr of a command into variables (without needing to write to a file): output=$($command 2>>>errors) Or: $command >>>output 2>>>errors Obviously this gives a syntax error now, as this intuitive idea isn't i

Re: No such file..?

2017-05-05 Thread Peter Passchier
back with the same message. Strace in this case will say "Can't stat", not "exec: No such file or directory" Peter On 06/05/2560 07:59, Eduardo Bustamante wrote: > On Fri, May 5, 2017 at 7:44 PM, Peter Passchier wrote: > [...] >> The output from bash

Re: No such file..?

2017-05-05 Thread Peter Passchier
the error message be more descriptive of what's the actual problem? Peter On 05/05/2560 20:01, Eduardo Bustamante wrote: > On Thu, May 4, 2017 at 10:57 PM, Peter Passchier wrote: > [...] >> $ file /home/pp/bin/caddy >> /home/pp/bin/caddy: ELF 64-bit LSB executable,

No such file..?

2017-05-05 Thread Peter Passchier
I downloaded a Solaris binary and I was wondering whether I could get it to execute with the --version commandline argument (it worked for an arm7 binary before). But that's not what concerns me. $ /home/pp/bin/caddy --version -bash: /home/pp/bin/caddy: No such file or directory $ file /home/pp/b