R
Ronald Fischer
I would like to propose a feature for Ruby which can be
found in Perl, and which is also frequently found in
many Unix utilities and to my knowledge in all of the=20
Gnu stuff:
When a file is opened for reading, and the filename is
"-", the file is assumed to be standard input.
When a file is opened for writing, and the filename is
"-", the file is assumed to be standard output.
This come very handy when writing applications which accept
filenames from, say, the command line or some configuration
file. Without providing any special logic inside the application,
input and output can be switched to stdin and stdout.=20
Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162
=20
found in Perl, and which is also frequently found in
many Unix utilities and to my knowledge in all of the=20
Gnu stuff:
When a file is opened for reading, and the filename is
"-", the file is assumed to be standard input.
When a file is opened for writing, and the filename is
"-", the file is assumed to be standard output.
This come very handy when writing applications which accept
filenames from, say, the command line or some configuration
file. Without providing any special logic inside the application,
input and output can be switched to stdin and stdout.=20
Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162
=20