Re: Resolved: Re: OT: Bash: what is eval doing here?

2022-06-12 Thread Greg Wooledge
On Sun, Jun 12, 2022 at 07:57:40AM -0400, rhkra...@gmail.com wrote: > On Saturday, June 11, 2022 10:25:34 AM Greg Wooledge wrote: > > On Sat, Jun 11, 2022 at 09:54:17AM -0400, rhkra...@gmail.com wrote: > > > eval `ssh-agent` > > > For the record, the command you've got here is written in a very >

Re: Resolved: Re: OT: Bash: what is eval doing here?

2022-06-12 Thread The Wanderer
On 2022-06-12 at 07:57, rhkra...@gmail.com wrote: > On Saturday, June 11, 2022 10:25:34 AM Greg Wooledge wrote: > >> On Sat, Jun 11, 2022 at 09:54:17AM -0400, rhkra...@gmail.com >> wrote: >>> eval `ssh-agent` > >> For the record, the command you've got here is written in a very >> antiquated wa

Re: Resolved: Re: OT: Bash: what is eval doing here?

2022-06-12 Thread rhkramer
On Saturday, June 11, 2022 10:25:34 AM Greg Wooledge wrote: > On Sat, Jun 11, 2022 at 09:54:17AM -0400, rhkra...@gmail.com wrote: > > eval `ssh-agent` > For the record, the command you've got here is written in a very > antiquated way. A better (as well as more modern) way to write it > would be:

Re: Resolved: Re: OT: Bash: what is eval doing here?

2022-06-11 Thread Greg Wooledge
On Sat, Jun 11, 2022 at 09:54:17AM -0400, rhkra...@gmail.com wrote: > eval `ssh-agent` > Then, in accordance with my vague recollection of what I think of as Greg > Woolidge's typical advice (which I (may mis-)remember as "always quote"), I > thought the backticks (that I incorrectly saw as sing

Resolved: Re: OT: Bash: what is eval doing here?

2022-06-11 Thread rhkramer
Intentionaly top posting: I just wanted to say that the question is resolved, and record my understanding. Thanks to all who replied! Repeating the command for posterity: eval `ssh-agent` I now see that it is a two step process, first the backticks cause ssh-agent to be run, producing 3 line

Re: OT: Bash: what is eval doing here?

2022-06-10 Thread David
On Sat, 11 Jun 2022 at 01:57, Kamil Jońca wrote: > rhkra...@gmail.com writes: > > In my (seemingly unending) quest to understand ssh, I've come across a > > document that calls for running =eval 'ssh-agent'= from a command line. > > > > I wondered why, as I thought I would get the same result fro

Re: OT: Bash: what is eval doing here?

2022-06-10 Thread The Wanderer
On 2022-06-10 at 11:25, rhkra...@gmail.com wrote: > In my (seemingly unending) quest to understand ssh, I've come across a > document that calls for running =eval 'ssh-agent'= from a command line. Note that here you have 'ssh-agent', with single-quotes AKA apostrophes... > I wondered why, as I

Re: OT: Bash: what is eval doing here?

2022-06-10 Thread Kamil Jońca
rhkra...@gmail.com writes: > In my (seemingly unending) quest to understand ssh, I've come across a > document that calls for running =eval 'ssh-agent'= from a command line. > > I wondered why, as I thought I would get the same result from just running > =ssh-agent=, but the results are differen

Re: OT: Bash: what is eval doing here?

2022-06-10 Thread Loïc Grenié
On Fri June 10th 2022 at 17:26, wrote: > In my (seemingly unending) quest to understand ssh, I've come across a > document that calls for running =eval 'ssh-agent'= from a command line. > > I wondered why, as I thought I would get the same result from just running > =ssh-agent=, but the results a

OT: Bash: what is eval doing here?

2022-06-10 Thread rhkramer
In my (seemingly unending) quest to understand ssh, I've come across a document that calls for running =eval 'ssh-agent'= from a command line. I wondered why, as I thought I would get the same result from just running =ssh-agent=, but the results are different -- see below: $ eval `ssh-agent` A