-
Story
-
Resolution: Done
-
Minor
-
RH124 - RHEL 8 1 20190507, RH124 - RHEL 7 1 20141208
-
None
URL:
Reporter RHNID:
Section: -
Language: |
Workaround:
Description: Chapter 4, section "Redirecting Output to a File or Program" introduces the concept of standard input and redirection in general, but focuses on standard output and standard error. This decision was made in development in order to focus on more-frequently used redirection operators.
RH255-333 points out, of course, that this means we'll be teaching constructs like the classic "Useless Use of cat" (UUOC) because of this. That is
[bash ~]$ cat filename | wc -l
instead of the faster
[bash ~]$ wc -l < filename
The arguments for why UUOC might be okay are discussed further in RH254-333. This issue is a placeholder for us to reconsider whether we need slightly more in-depth coverage of stdin redirection in the curriculum, and whether that's here or in RH254 shell scripting somewhere. I almost argue for the latter.