My shebang is: #!/bin/mksh. I've also tried: #!/usr//bin/mksh. ... to no avail.
---John On Tue, Apr 9, 2013 at 11:54 AM, Roy Tam <[email protected]> wrote: > > 2013/4/9 下午10:49 於 "John Chludzinski" <[email protected]> 寫道: > > >> >> I have a script with: >> >> X=(1 2 3) >> X+=(4 5 6) >> print "${X[*]}" >> >> sh script.ksh results in: Unable to initialize device PRN. > > it seems that you don't have *ksh as /bin/sh. so you are running script with > ash or bash, which has no 'print' builtin. > >> >> What's the deal? >> >> BTW, I'm using the latest Cygwin on Windows 7. >> >> ---John
