Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-2849

RH124-381: Coverage of stdin may be a bit light?

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • RH124 - RHEL 9 0
    • RH124 - RHEL 8 1 20190507, RH124 - RHEL 7 1 20141208
    • RH124
    • 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.

              rht-sbonnevi Steven Bonneville
              rht-sbonnevi Steven Bonneville
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: