bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash redirection operator ‘<<-’


From: Craig H Maynard
Subject: Bash redirection operator ‘<<-’
Date: Wed, 8 Oct 2025 03:52:24 -0400

TO: Bash maintainer(s)

https://www.gnu.org/software/bash/manual/bash.html#Here-Documents

In section 3.6.6 of the Bash Manual, the phrase "are stripped" should be 
removed from the following paragraph:

> If the redirection operator is ‘<<-’, the shell strips leading tab characters 
> are stripped from input lines and the line containing delimiter. This allows 
> here-documents within shell scripts to be indented in a natural fashion.

A related question: 

In my Bash scripts, I indent using spaces instead of tabs but I'd still like to 
get this behavior. Why not strip leading whitespace?

Thanks,
Craig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]