why people use double \ at the end of line for bas...
# random
y
why people use double \ at the end of line for bash script in nextflow
m
So it actually puts a
\
in the bash code. Without it, the multiline string would not wrap:
Copy code
script:
    """
    echo "hello" | \\
        cat
    """
produces: `.command.sh`:
Copy code
#! ...

echo "hello" | \
    cat
while
Copy code
script:
    """
    echo "hello" | \
        cat 
    """
produces: `.command.sh`:
Copy code
#! ...

echo "hello" |         cat
👍 2
y
@Mahesh Binzer-Panchal Thank you! I had this questions in mind for a while, finally got it
👍🏽 1