Changeset 13872


Ignore:
Timestamp:
Oct 28, 2019 3:26:33 PM (3 weeks ago)
Author:
aramle
Message:

#5819 Testing parsing arguments without sed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/jm_tests.in

    r13867 r13872  
    500500    esac
    501501    if [[ ${FLAG} == 1 ]]; then
    502       echo "In flag == 1"
    503       echo "" ${a}|sed 's!\(.\)!\1 !g'
    504       for b in $(echo "" ${a}|sed 's!\(.\)!\1 !g'); do
     502      echo "In flag == 1 with a=${a}"
     503      a_split=""
     504      for ((i=0; i<${#a}; i++)); do a_split="$a_split ${s:$i:1}"; done
     505      echo a_split="$a_split"
     506      for b in a_split; do
    505507        HAVE_READ_ARGS=1
    506508        echo b=${b}
Note: See TracChangeset for help on using the changeset viewer.