X-Recipient: archive-cygwin AT delorie DOT 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:to:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=XVHcCaSghCSW7vif qvQ6FEey/h8aT6VzopMv1CviuWOaAPputo9bG94LX4XWEtUSZxpskpftLxhwCpN+ sz8e5XG2OuZTuWHIA4buY5yk7GYRYi4ieioo7M2y4bXxGgiaGrR9a065ZFNts+MH opXDsej02O4OyR897LXcdhPyKKI= 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:to:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=ZlsHrayWy52mYQmMNUcpkn mB02k=; b=fTj/cSk+AbY7TWBaAm69FBKwaWzT1a7mfJ1UUSodaHQQdBQownu0Pq 9qCB5mfvhkalIoLzSPS+axku+0N6b9nhTu4COexguZFcpqXQzxX7QUBuu4J0PApg yM8AvCvznV0nJXl7okRZuQsjjqoIL1/oTCzRTz7c7StlAYK6pxrOo= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=6.7 required=5.0 tests=BAYES_99,BAYES_999,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=U*kipton_moravec, kipton_moravecyahoocom, kipton_moravec AT yahoo DOT com, sk:kipton_ X-HELO: nm41-vm9.bullet.mail.ne1.yahoo.com Date: Wed, 7 Sep 2016 16:20:50 +0000 (UTC) From: Kipton Moravec Reply-To: Kipton Moravec To: "cygwin AT cygwin DOT com" Message-ID: <1479338911.374718.1473265251009@mail.yahoo.com> In-Reply-To: <1663185173.20160907190417@yandex.ru> References: <330568691 DOT 2384551 DOT 1473201409220 DOT ref AT mail DOT yahoo DOT com> <330568691 DOT 2384551 DOT 1473201409220 AT mail DOT yahoo DOT com> <001601d208a8$ee01d0b0$ca057210$@rogers.com> <1238984601 DOT 338776 DOT 1473262363471 AT mail DOT yahoo DOT com> <1663185173 DOT 20160907190417 AT yandex DOT ru> Subject: Re: Bash shell script issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes ----- Original Message ----- From: Andrey Repin To: Kipton Moravec ; cygwin AT cygwin DOT com Sent: Wednesday, September 7, 2016 11:04 AM Subject: Re: Bash shell script issue Greetings, Kipton Moravec! > Something else I did not know. > dalkmora AT 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... That seems to have fixed it. Sorry about the top posting, different email lists have different rules. Kip -- 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