Bash seg faulting?

2017-06-02 Thread Andy Hall
Here is some more information The sequence: Andy@Andy-Work ~ $ export OFFICE_BIN="C:\Program Files (x86)\Microsoft Office\root\Office16" $ strace "$OFFICE_BIN"/Wordconv.exe -oice -nme "Post-Install.doc" "Post-Install.docx" >strace.out Segmentation fault $ echo $? 139 Produces the attached

Re: Bash seg faulting?

2017-06-02 Thread Jack Adrian Zappa
How about using -xv on your first line to see what is actually being executed when doing substitution? I.e. #!/bin/bash -xv Another possibility is that Wordconv.exe requires .DLLs that are not found in the path. HTH A On Fri, Jun 2, 2017 at 11:52 AM, Andy Hall

RE: Bash seg faulting?

2017-06-02 Thread Andy Hall
On 1 June Doug Henderson wrote: > > 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. > > > > $

Re: Bash seg faulting?

2017-06-01 Thread Doug Henderson
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

Bash seg faulting?

2017-06-01 Thread Andy Hall
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 OFFICE_BIN="C:\Program Files (x86)\Microsoft Office\root\Office16" for doc