From: David Vallner Date: 2006-10-20T06:30:44+09:00 Subject: Re: handle a pipe (|) character inside backticks? --------------enigD11C168B34911E7A8D4CDABF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Chris McMahon wrote: > irb(main):026:0> r =3D `ps efxl |grep "grep"` > =3D> "" > irb(main):027:0> puts r >=20 > =3D> nil > irb(main):028:0> >=20 > The problem seems to be with the pipe character | but escaping it with= > "\" has no effect. =20 > How can put a "|" inside my backticks? >=20 Dump, replace with sys-proctable? http://rubyforge.org/projects/sysutils David Vallner --------------enigD11C168B34911E7A8D4CDABF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFN+6By6MhrS8astoRAs4XAJ917cFDU3FpuMCTjsn5lUWwHdxU2wCdELzw UZQk77mF2XSiDehAqE4Tb6s= =Ynvc -----END PGP SIGNATURE----- --------------enigD11C168B34911E7A8D4CDABF--