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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=xzSqPPs5O81IILCi uhsrfDXCiyfrtQwC90JXmURk5zeoSVgj3ZcBS9oCIE+1i0CzhFBM9pzOhMG1jDFf fcJ6vRWHzFkdQa0kVGbXXesS8BJGLfHsObblDety0z0BotYDxdg/Wudm6IY1dsyd 7dOhkqzlBV+vAE1t1aKmQVT/K7Q= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=mS+XGhqtvF2Dd54Z9UdAqz a+bMo=; b=rlg46Mix7I+HAKYshVcEGNQYS4GdbfVd4XgvbD4ba8jrkl+GplQn1E MBIp5h1mbe2MA1wtyfaIF/63L2F05wPYTrx7q0o3j3ocWbq3HVJ756SFqVh927dF sq+SHMWWEC8w0qGLbLrpcZu0AqTo29YjfR40KoyI2kNJaHMZxSZ/8= 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: 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 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) Subject: Re: Bash shell script issue To: cygwin AT cygwin DOT com 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> From: Marco Atzeri Message-ID: <1cb1083f-f625-acf4-8d8b-78b04ec2b685@gmail.com> Date: Wed, 7 Sep 2016 17:48:56 +0200 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 please reply on the bottom On 07/09/2016 17:32, Kipton Moravec wrote: > 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. > > 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