R
Robert Peirce
--Apple-Mail-9--791126556
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed
I am missing something important about aliases. I mentioned the "alias=20=
:cmd :`" problem before. I also have a problem with this:
$ cat tst2
#!/usr/bin/env ruby
class Fixnum
alias plus +
end
puts "#{2 + 5}" --> 7
puts "#{2.plus(5)}" --> 7
puts "#{2.plus 5}" --> 7
# puts "#{2 plus 5}" --> ERROR
Clearly, plus is not an exact alias for '+' , just as :cmd is not the=20
same as :`. Is it that ruby aliases are not the same as shell aliases?
Bob Peirce Venetia, PA =20=
724-941-6883
(e-mail address removed) [HOME (Mac)]
(e-mail address removed) [OFFICE]
There is=A0 only one basic human=A0 right, the=A0 right to do as you =
damn well
please.=A0 And with it comes the only basic human duty, the duty to take
the consequences.=A0 -- P.J. O'Rourke
--Apple-Mail-9--791126556--
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed
I am missing something important about aliases. I mentioned the "alias=20=
:cmd :`" problem before. I also have a problem with this:
$ cat tst2
#!/usr/bin/env ruby
class Fixnum
alias plus +
end
puts "#{2 + 5}" --> 7
puts "#{2.plus(5)}" --> 7
puts "#{2.plus 5}" --> 7
# puts "#{2 plus 5}" --> ERROR
Clearly, plus is not an exact alias for '+' , just as :cmd is not the=20
same as :`. Is it that ruby aliases are not the same as shell aliases?
Bob Peirce Venetia, PA =20=
724-941-6883
(e-mail address removed) [HOME (Mac)]
(e-mail address removed) [OFFICE]
There is=A0 only one basic human=A0 right, the=A0 right to do as you =
damn well
please.=A0 And with it comes the only basic human duty, the duty to take
the consequences.=A0 -- P.J. O'Rourke
--Apple-Mail-9--791126556--