Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
Hello.
I have a problem with indentation in bash scripts with here documents.
Normally, I use spaces for indentation, eg.
func()(
blabla
)
But if need to use here doc document in a function, I am forced to do eather
func()(
cat <<- EOF
blabla
EOF
)
or
func()(
cat << EOF
blabla
EOF
)
I think, it would be nice, if you implemented Squiggly heredoc, which
solves this problem by ignoring both leading spaces and leading tabs. eg.
func()(
cat <<~ EOF
blabla
EOF
)
Would it be possible please? If I get your approval, I can implement it
to bash myself.