From: Patti Bennett Date: 2009-09-05T06:52:05+09:00 Subject: Re: declare a shell alias in a ruby file --0-1822010182-1252100720=:2162 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Glenn, Do you know how to unsubscribe from these e-mails? Thanks, Steve --- On Fri, 9/4/09, Glenn Jackman wrote: From: Glenn Jackman Subject: Re: declare a shell alias in a ruby file To: "ruby-talk ML" Date: Friday, September 4, 2009, 6:30 AM At 2009-09-04 04:32AM, "Jean-S=E9bastien" wrote: >=A0 On 3 sep, 18:16, Brian Candler wrote: > > The only way you can do this is from the original shell itself. Either > > type your alias command at the shell prompt, or put it in a file and do > > > > =A0 . myscript > > > > The dot (.) means "read this file and execute it as commands within thi= s > > shell" >=A0=20 >=A0 ". myscript" doesn't not work for me. It doesn't read my file as a >=A0 ruby one, althrough my file is starting by "#!/usr/bin/env ruby". Brian is saying that the ruby script writes shell commands to a file named "myscript" (instead of printing them to stdout).=A0 Then the shell will source that file (instead of 'eval'-ing its stdin). --=20 Glenn Jackman =A0 =A0 Write a wise saying and your name will live forever. -- Anonymous =0A=0A=0A --0-1822010182-1252100720=:2162--