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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=ccFkF+G RX6b++r41A6Cr0dTW/Y3lQO5YZHizopVJhl73wL8S41L4lsVsY6s+Uz0IsZcJ1SQ Bhg4DpjYUfHG1mt56HB+ZnZzLnnDm+HEo5KR7QQWrAREZJ2P+QKFgYROs9mpYTz2 uMQt+CfwvoBGLskbQQ5X5w9tzff9eMjYZA3Y= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=uqPe4Vabp13T/ nU01Gg4KCEaoQc=; b=m7uNkHV4XzivGK652VoGxBzdANORkMCynPfgM1jZcjhhd 0sMWWkYDLMCAzrOHAz/GMrQpI9FUB0VPdn79QY9s2VagOXAMhjuR1OTtb2cHbWEw L0VJUl2Yjr071xxsrgg3GCDKH+XQp8r3eCdohXYSrJavFQW0oa69BG8GcCvook= 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=-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 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 In-Reply-To: <001801d2db33$5a560e90$0f022bb0$@comcast.net> References: <001801d2db33$5a560e90$0f022bb0$@comcast.net> From: Doug Henderson Date: Thu, 1 Jun 2017 19:49:41 -0600 Message-ID: Subject: Re: Bash seg faulting? To: cygwin Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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