From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93857 invoked by alias); 7 Sep 2016 15:49:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 93839 invoked by uid 89); 7 Sep 2016 15:49:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Carriage, termination, Kip, 5024 X-HELO: mail-wm0-f43.google.com Received: from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Sep 2016 15:49:18 +0000 Received: by mail-wm0-f43.google.com with SMTP id w12so40581946wmf.0 for ; Wed, 07 Sep 2016 08:49:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Awx508WLlUilCP8UBb+1YCDcvPuhYidAMtTQKlqHmc4=; b=inajIQh19wIOkptIAJ60aWnysDfK5PBy5gugevFYPWSWcKpcOjgpKy9M7tjILEHVo2 krxtNOIsgpeTYdpeT57YPKWgu4fuY71qosqu30Om/FCrl4BS+1cGyWpWlrdcPbPTPIHu mY6YniaJNqvDzEv94389wOjpsFnz6W9vicxFWtbDyLCcuJIAT4FgBizptqdAOHzyR7Tq dHpiYT6949RIKslfL+yJJzk0QOVgCq3M0CTL0gTY5wZgqfy/cKeT2dJmSf2oap4uOQDt C5gdPsJHM39v2dVSmdJXv+gElm6VboJpjFpF33v7P2ZdEm7spCV8GIrVXazKPThi7G3K 0P/g== X-Gm-Message-State: AE9vXwMFYUSpyYf3VmNTpl9EBSwpS5iF9yo+biqfEjZ+1nJlFO3zyW0vKNnrcds2LxxEcg== X-Received: by 10.28.129.145 with SMTP id c139mr4703694wmd.102.1473263355777; Wed, 07 Sep 2016 08:49:15 -0700 (PDT) Received: from [172.21.188.226] ([62.154.173.198]) by smtp.googlemail.com with ESMTPSA id gf4sm5630979wjb.47.2016.09.07.08.49.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Sep 2016 08:49:15 -0700 (PDT) Subject: Re: Bash shell script issue To: cygwin@cygwin.com References: <330568691.2384551.1473201409220.ref@mail.yahoo.com> <330568691.2384551.1473201409220@mail.yahoo.com> <001601d208a8$ee01d0b0$ca057210$@rogers.com> <1238984601.338776.1473262363471@mail.yahoo.com> From: Marco Atzeri Message-ID: <1cb1083f-f625-acf4-8d8b-78b04ec2b685@gmail.com> Date: Wed, 07 Sep 2016 15:49:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1238984601.338776.1473262363471@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00110.txt.bz2 please reply on the bottom On 07/09/2016 17:32, Kipton Moravec wrote: > 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. > > Thanks for the suggestion. > > Kip > \r = Carriage Return \n = New Line / Line Feed so Notepad++ produced a file with CRLF as line termination and you need to convert it with d2u. -- 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