[CentOS] tabs ignored in here document

John R Pierce pierce at hogranch.com
Fri May 5 20:46:45 UTC 2017


On 5/5/2017 1:41 PM, Robert Moskowitz wrote:
>
> I just did a test where I created a file, xit, with the here document 
> in it and ran it with ./xit
>
> This way, the tabs remained.  So the 'problem' is when I am pasting 
> the same lines (with tabs) into the terminal window. There bash is 
> interpreting the tabs and not feeding them into the here doc processing.


yes, bash interprets stdin differently than not stdin.


-- 
john r pierce, recycling bits in santa cruz




More information about the CentOS mailing list