If I try on the command line:
> W=(1 2 3 4 5 6 7 8 9)
> print "${W[*]}"
1 2 3 4 5 6 7 8 9
Why does it work on the command line and not in a script? How do I
get it to work in a script?
---John
On Tue, Apr 9, 2013 at 10:57 AM, Benny Siegert <[email protected]> wrote:
> Sounds like you hit print.exe, which is a command from DOS times. It
> actually wants to talk to a printer.
>
> On Tue, Apr 9, 2013 at 4:41 PM, John Chludzinski
> <[email protected]> wrote:
>> 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.
>>
>> What's the deal?
>>
>> BTW, I'm using the latest Cygwin on Windows 7.
>>
>> ---John
>
>
>
> --
> The first essential in chemistry is that you should perform practical
> work and conduct experiments, for he who performs not practical work
> nor makes experiments will never attain the least degree of mastery.
> -- Abu Musa Jabir ibn Hayyan (721-815)