From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63530 invoked by alias); 2 Jun 2017 15:52:46 -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 63517 invoked by uid 89); 2 Jun 2017 15:52:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=editor, d2u, endings, dos2unix X-HELO: resqmta-po-04v.sys.comcast.net Received: from resqmta-po-04v.sys.comcast.net (HELO resqmta-po-04v.sys.comcast.net) (96.114.154.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Jun 2017 15:52:44 +0000 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-04v.sys.comcast.net with SMTP id Gos1ddQeZz0b7GosZdHvPr; Fri, 02 Jun 2017 15:52:47 +0000 Received: from AndyWork ([73.223.74.29]) by resomta-po-11v.sys.comcast.net with SMTP id GosYdzYrYnaRwGosYdnzaX; Fri, 02 Jun 2017 15:52:47 +0000 From: "Andy Hall" To: "'Doug Henderson'" , "'cygwin'" References: <001801d2db33$5a560e90$0f022bb0$@comcast.net> In-Reply-To: Subject: RE: Bash seg faulting? Date: Fri, 02 Jun 2017 15:52:00 -0000 Message-ID: <002201d2dbb8$45646b00$d02d4100$@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4wfI9q/62tamYVJVIRQFkAJujbN9OCw2/1Glu8fiz1kNORQihaIDk3F2AhYgFDg7A7dzKO2xNgvjeeEq0SY4mB149DQzMfBmJho+bf42D6IvN32e7WyDW8 mDp2x/3e3OVzfY+d2TABvnUtLLPXYpP+9lQpwHaBVfJZPQBAQcPd7xngo0tnxAQkVT94CnlOWZj7dFqvZaaDoq3DQNmZnJfnlOQ= X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00010.txt.bz2 On 1 June Doug Henderson wrote: >=20 > 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 > > >=20 > 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. >=20 > 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. >=20 > HTH > Doug >=20 First of all, the Wordconv.exe converts a .doc file to a .docx file, ostens= ible writing no output. However, I find if I change the script to read: #!/bin/bash OFFICE_BIN=3D"C:\Program Files (x86)\Microsoft Office\root\Office16" for doc in *.doc; do echo "converting: $doc" "$OFFICE_BIN"/Wordconv.exe -oice -nme "$doc" "${doc}x" | od done and run, I don=E2=80=99t get the seg faults, but od is showing no output wr= itten as you might expect (as in od