From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18696 invoked by alias); 2 Jun 2017 01:50:10 -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 16087 invoked by uid 89); 2 Jun 2017 01:50:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=editor X-HELO: mail-yb0-f172.google.com Received: from mail-yb0-f172.google.com (HELO mail-yb0-f172.google.com) (209.85.213.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Jun 2017 01:50:00 +0000 Received: by mail-yb0-f172.google.com with SMTP id 132so14856765ybq.1 for ; Thu, 01 Jun 2017 18:50:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=c0l3aPRbfWn7tDqIoaFPH8opi9lQYhdU4kuYIt4yqoc=; b=n1nmF/NaRXt7Fqi/204FJRjfYSqdhd5sKNHtbfnqBYsSNFEJ9oVUMokBUyqJ1UZfIO 3yuQYRFLms08Zy/Ov6FZyVporJoxBmUyPGuLXjoKLyZmiTfLqaRZtcFd0qOeutG4kWxP yBx6Moud+5V+go0uaRBMKHpNx8GZY269m9OctQYZ5wQcCSddAc7ImBtPW69sCyAxrSVJ cs/hHdD2TzNvwxBCnq/LHKWVN3SfXDWMU04HjgzDBqfag57STlxEqHaDg/ArEBfbiUQB tcVy52tRjDpf2pv3VvMfn3NCmrA0Z7UjBMyA26/NgDx7uBdemc8XguC9SFnbHAQFn16y 3h0w== X-Gm-Message-State: AODbwcAbbIDWelUCxHbHs5MVpTnlLEeO3w0bsLe85SiwcS3kqZ5Dja+j 3eycA+pzay2oy3e+msEukdxQsEwpDFu9 X-Received: by 10.37.175.73 with SMTP id c9mr44088369ybj.144.1496368202102; Thu, 01 Jun 2017 18:50:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.13.15 with HTTP; Thu, 1 Jun 2017 18:49:41 -0700 (PDT) In-Reply-To: <001801d2db33$5a560e90$0f022bb0$@comcast.net> References: <001801d2db33$5a560e90$0f022bb0$@comcast.net> From: Doug Henderson Date: Fri, 02 Jun 2017 01:50:00 -0000 Message-ID: Subject: Re: Bash seg faulting? To: cygwin Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00004.txt.bz2 On 1 June 2017 at 18:01, Andy Hall wrote: > > Here is a strange one. I have two scripts, conv.sh and conv.bat that do the same thing: scan the current directory for > .doc files and convert them to .docx files. Here are the two scripts. > > $ cat conv.sh > #!/bin/bash > Try running "cat -e conv.sh" to see if you have dos line endings, e.g. CR LF, instead of unix line endings, e.g. LF only. If you do, run "dos2unix conv.sh" or "d2u conv.sh" to fix the line ending problem. Check that your editor can create files with unix line endings, and preserves unix line endings. HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- 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