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

RH134-215: Summarize difference between [ <TESTEXPRESSION> ] and [[ <TESTEXPRESSION> ]]

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • RH134 - RHEL 8 1 20190507
    • RH134 - Early Access
    • RH134
    • None
    • 1
    • en-US (English)

      URL:
      Reporter RHNID: mikephillips1973
      Section: - ch01s03
      Language: en-US (English)||||||||
      Workaround:

      Description: The following sentences are currently used, "Tests can be performed using the Bash test command syntax, [ <TESTEXPRESSION> ]. They can also be performed using Bash's newer extended test command syntax, [[ <TESTEXPRESSION> ]], which has been available since Bash version 2.02." 

      I can anticipate students asking the question, "Is there a difference between the two?" It might be nice if we provided a sentence or two describing when the newer syntax would be preferred (especially since all of our examples use the older syntax).

              rht-vcostea Victor Costea (Inactive)
              rht-miphilli Michael Phillips
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: