Operating System - OpenVMS
1753809 Members
7582 Online
108805 Solutions
New Discussion юеВ

Re: 1.9 GNV problem with bash statement "Document here"

 
SOLVED
Go to solution
Alex Chupahin
Super Advisor

1.9 GNV problem with bash statement "Document here"

This is bash script:

cat >file.out <bla-bla-bla
1234
ENDFILE
cat file.out

When finished, I can see only empty file.out.
What it is wrong?
Of course, this code works in unix nicely and previous GNV 1.6 also.

best regards,
Alexey
3 REPLIES 3
x2084
Trusted Contributor

Re: 1.9 GNV problem with bash statement "Document here"

This is known to be broken for some while. Contact HP and file a problem report.

The files are created, they are in /tmp, aka sys$scratch. Check for files with prefix SH and the process id (PID) or a substring of the PID. You can work around this with something like

cat /tmp/sh*$$. >file.out
rm /tmp/sh*$$.

If you use configure which usualy has lots of these here documents, you need to have them all changed.
Ian Miller.
Honored Contributor
Solution

Re: 1.9 GNV problem with bash statement "Document here"

Does GNV 2.1 have the same problem?
____________________
Purely Personal Opinion
Alex Chupahin
Super Advisor

Re: 1.9 GNV problem with bash statement "Document here"

Yes. This error continues from 2.0
and it is impossible any useful using.
Very strange. I've forced back to 1.6-2 on Alpha and Itanium :(