public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Bash shell script issue
Date: Wed, 07 Sep 2016 15:49:00 -0000	[thread overview]
Message-ID: <1cb1083f-f625-acf4-8d8b-78b04ec2b685@gmail.com> (raw)
In-Reply-To: <1238984601.338776.1473262363471@mail.yahoo.com>

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

  reply	other threads:[~2016-09-07 15:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <330568691.2384551.1473201409220.ref@mail.yahoo.com>
2016-09-06 22:39 ` Kipton Moravec
2016-09-07  1:21   ` Eric Blake
2016-09-07  1:41     ` Michel LaBarre
2016-09-07 15:35       ` Kipton Moravec
2016-09-07 15:49         ` Marco Atzeri [this message]
2016-09-07 17:41           ` Erik Soderquist
2016-09-07 16:05         ` Andrey Repin
2016-09-07 16:25           ` Kipton Moravec
2016-09-07 16:22     ` Kipton Moravec
2016-09-07 17:35       ` Andrey Repin
2016-09-07 18:09         ` Eliot Moss
2016-09-07 18:28         ` Eric Blake
2016-09-09 19:37           ` Gene Pavlovsky
2016-09-07 19:16       ` Brian Inglis
     [not found]   ` <32e004cb44addbaefde0839df5500d60@www.ds.net>
     [not found]     ` <039bcc69d005bf6db5aba99a90f51e36@www.ds.net>
2016-09-07 17:54       ` wilson
2016-09-07 18:13         ` Eliot Moss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1cb1083f-f625-acf4-8d8b-78b04ec2b685@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).