meta data for this page
  •  

This is an old revision of the document!


heredoc

Suppress variable expansion

To do not handle $ in heredoc you need to quote heredoc delimiter:

cat > /opt/bin/startup.sh << "ENDSCRIPT"
#!/bin/sh
export LD_LIBRARY_PATH=...:$LD_LIBRARY_PATH
source /opt/bin/env.sh
/opt/bin/hello
ENDSCRIPT