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

RH124-390: Chap 2 pg 51 protecting arguments from expansion example

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • RH124 - RHEL 8 1 20190507
    • RH124 - RHEL 7 1 20141208, RH124 - RHEL 7 1 20140606
    • RH124
    • None
    • en-US (English)

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)|
      Workaround: Suggestion: either choose a different quoting example (I use this one:
      echo "Today is $(date) and the files that start with a in my directory are a*"
      echo 'Today is $(date) and the files that start with a in my directory are a*'

      ****OR****

      create a section that teaches variables. In unit 5 we have students use variables and we haven't taught it...so might be a good idea to teach it here anyway!

      Description: Your examples use variables. We have not taught variables. We just taught command sub (ie $() ) and then all of a sudden there is ${} (variable sub) used in an example to teach quoting. This is confusing to the new-to-linux people.

      Suggestion: either choose a different quoting example (I use this one:
      echo "Today is $(date) and the files that start with a in my directory are a*"
      echo 'Today is $(date) and the files that start with a in my directory are a*'

      ****OR****

      create a section that teaches variables. In unit 5 we have students use variables and we haven't taught it...so might be a good idea to teach it here anyway!

              rht-vcostea Victor Costea (Inactive)
              DanicaP Danica Pascavage-Saydam (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: