X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=vANTm1O3CUJCKq/C
	VIquirK0ugLQFOnO8DgyNU+KHy36cwXHJhJp8/jp7pSLUxeJNQcnET0lJX1xzOWy
	o0GGhN3+BC83YUe4KC4kV+g8ZMBg5ZgcNQd2DNp9bA4E4Fnpf0NJZgg4O0ILGyDB
	s6g1e666Q64nkanzkF574KwXHzE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=4b9jUy2vfO+zkDIDVASVDP
	CQing=; b=IN6KMceF/bbH6Hw4EFLKbxu9t+lfJsChzIQIdhpCUzhPAH2oTny8jG
	udjWDARgaWsZLPoXvRRyAes75+QKgebRgxn4xIChUL6EXlNZuJzgaMCno47urBxG
	qHJGG2j6st8segNjLKkxVeFvvVKJS1uGi6jhchJc4nNkJf0oqiazY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.2 required=5.0 tests=BAYES_95,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=terrible, Repin, Andrey, andrey
X-HELO: forward2m.cmail.yandex.net
Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Wed, 7 Sep 2016 19:04:17 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1663185173.20160907190417@yandex.ru>
To: Kipton Moravec <kipton_moravec@yahoo.com>, cygwin@cygwin.com
Subject: Re: Bash shell script issue
In-Reply-To: <1238984601.338776.1473262363471@mail.yahoo.com>
References: <330568691.2384551.1473201409220.ref@mail.yahoo.com>   <330568691.2384551.1473201409220@mail.yahoo.com>  <c0b897be-d3cf-f3b9-cf5b-0024a1d395e5@redhat.com>  <001601d208a8$ee01d0b0$ca057210$@rogers.com>  <1238984601.338776.1473262363471@mail.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Kipton Moravec!

> Something else I did not know.


> dalkmora@DALM0048 ~/walnut/dp2b_walnut_customer_flextronics/walnut 
> $ od -cx testconvert1.sh 
> 0000000   #   !   /   b   i   n   /   b   a   s   h  \r  \n   e   c   h 
> 2123    622f    6e69    622f    7361    0d68    650a    6863 
> 0000020   o       $   P   W   D  \r  \n   p   r   o   j   e   c   t   _ 
> 206f    5024    4457    0a0d    7270    6a6f    6365    5f74 
> 0000040   r   o   o   t   =   $   P   W   D  \r  \n   e   c   h   o 
> 6f72    746f    243d    5750    0d44    650a    6863    206f 
> 0000060   $   p   r   o   j   e   c   t   _   r   o   o   t  \r  \n   x 
> 7024    6f72    656a    7463    725f    6f6f    0d74    780a 
> 0000100   =   $   {   p   r   o   j   e   c   t   _   r   o   o   t   } 
> 243d    707b    6f72    656a    7463    725f    6f6f    7d74 
> 0000120   /   t   o   o   l   s  \r  \n   e   c   h   o       $   x  \r 
> 742f    6f6f    736c    0a0d    6365    6f68    2420    0d78 
> 0000140  \n   e   c   h   o       $   {   x   }       |       c   a   t 
> 650a    6863    206f    7b24    7d78    7c20    6320    7461 
> 0000160       -   A 
> 2d20    0041 
> 0000163 

> The proportional spacing screwed it up, but there are no extra unprintable characters.

> I have been using notepad++ for my windows editor. 

> So that is not the issue. 

No, this is actually an issue.
Your file contains CRLF endings, while entire world uses LF only.

P.S.
This list is in "no top posting, please, thank you" mode.


-- 
With best regards,
Andrey Repin
Wednesday, September 7, 2016 19:03:06

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

