Task: Properly Use Heredoc to Write Code to a File
Task: Properly Use Heredoc to Write Code to a File: a task in Terminal-Lego-15k (Harbor dataset). When using cat with heredoc ( <<EOF ) to write shell script code to a file, special characters like $ , backticks, and other shell metacharacters get interpreted and expanded by the shell before being…
The task
When using `cat` with heredoc (`<<EOF`) to write shell script code to a file, special characters like `$`, backticks, and other shell metacharacters get interpreted and expanded by the shell before being written to the file. This causes the output file to contain expanded/evaluated values instead of the literal code.
Part of PrimeIntellect/Terminal-Lego-15k.