From: Jam Bees Date: 2012-10-04T11:20:46+09:00 Subject: Re: Redirecting $stdout and $stderr streams --Apple-Mail-F6547962-5368-445A-A636-F0CF1B719872 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3 Oct 2012, at 18:53, "Dami=C3=A1n M. Gonz=C3=A1lez" wrote: > Guys, how are you? Reasonably well, thanks anybody knows what ">" and the rest means when invoking > test.rb? >=20 >=20 This is directives to the shell, not command arguments. The order of operati= ons is: 1. The shell looks at a command line and performs interpretation. 2. The program gets the result of that interpretation as arguments.=20 This is specifically IO redirection. You can test by doing something like: ls -R > outfile.txt Or on windows: dir > outfile.txt You will see that though the ls command does not know how to make an outfile= .txt, one is made anyway. This is handled by the shell, and the OS itself. http://pcsupport.about.com/od/commandlinereference/a/redirect-command-output= -to-file.htm That link isn't a bad intro to the same ideas Jams= --Apple-Mail-F6547962-5368-445A-A636-F0CF1B719872 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On 3 Oct 2012, at 18:53, "Dami= =C3=A1n M. Gonz=C3=A1lez" <lists@= ruby-forum.com> wrote:

Guys, how are you?

Reas= onably well, thanks

 anybody knows what ">"= and the rest means when invoking
= test.rb?



This is d= irectives to the shell, not command arguments. The order of operations is:

1. The shell looks at a command line and performs in= terpretation.
2. The program gets the result of that interpretatio= n as arguments. 

This is specifically IO redir= ection. You can test by doing something like:

ls -R= > outfile.txt

Or on windows:

dir > outfile.txt

You will see that thoug= h the ls command does not know how to make an outfile.txt, one is made anywa= y. This is handled by the shell, and the OS itself.

http://pcsupport.about.com/od/com= mandlinereference/a/redirect-command-output-to-file.htm

That link isn't a b= ad intro to the same ideas


Jams= --Apple-Mail-F6547962-5368-445A-A636-F0CF1B719872--