X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_45 X-Spam-Check-By: sourceware.org From: Hubert Samm To: cygwin AT cygwin DOT com Subject: problem under cygwin with sh, bash, ksh Date: Fri, 6 Mar 2009 07:26:35 -0600 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200903060726.35848.iamsamm@sammiam.us> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi All... I've searched and found nothing.... this script runs just fine on AIX, Solaris, and Linux, but under cygwin, the array VALUE prints only blanks.. has anyone else run into this... I've tried a bunch of different things around typecast, etc, but it looks like VALUE is local in the table_it function... any thoughts??? table_it() {    case "$1" in       class) VALUE[0]=$2 ;;       source) VALUE[1]=$2 ;;       server) VALUE[2]=$2 ;;       sub_source) VALUE[3]=$2 ;;       msg_catalog) VALUE[4]=$2 ;;       epage) VALUE[5]=$2 ;;       threshold) VALUE[6]=$2 ;;       *) echo "UNKNOWN $1 $2" ;;    esac }     TEMP1=/tmp/parse_log4j_01     find $1 -type f -print | while read filename rest do        echo "$filename"      grep "Tec_" $filename | dd conv=lcase 2>/dev/null | sed -e 's//dev/null | sed -e 's/