On Friday 15 February 2008 22:06, Aaron Kulkis wrote:
Randall R Schulz wrote:
On Friday 15 February 2008 09:22, Per Jessen wrote:
Randall R Schulz wrote:
Please break yourself of the habit of doing "cat someFile
|someCommand" Very, very few Unix command do not take file names | as
specifications of the input on which to operate.
"cat someFile |someCommand" is best replaced by:
"somecommand
Not really. The best is to let the program open the file. Then it knows that file's name, for one thing, and can include it in any diagnostics.
In the input redirection case, it's known as "stdin"
Which is neither here nor there. If you use the shell's redirection syntax, the _shell_ opens the file, not the program. Because the program did not open the file, it does not know its name and cannot issue that name in a diagnostic. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org