A minimal example of the problem under Cygwin:
A directory with a Makefile
:
all:
@echo "foo"
and a test.sh
:
#!/usr/bin/bash
x=$(make)
print $x
Now bash test.sh
gives: Unable to initialize device PRN
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
print
command in bash, did you meanprintf
orecho
? This seems to be the error Windows produces when trying to run the Windows commandline toolprint
: Unable to initialize device PRN in Python. Do you still have issues if you useecho
?