Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Robert Moskowitz
Excellent! On 05/05/2017 05:11 PM, Robbert Eggermont wrote: It's certainly possible to include tabs in here documents, in shell scripts it works as expected. However, when you input the here document on the command line in an interactive shell, the moment you enter the tab it immediately

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Robbert Eggermont
It's certainly possible to include tabs in here documents, in shell scripts it works as expected. However, when you input the here document on the command line in an interactive shell, the moment you enter the tab it immediately triggers Bash' programmable completion and the tab never reaches

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Jack Bailey
On 5/5/17 1:52 PM, Robert Moskowitz wrote: On 05/05/2017 04:46 PM, John R Pierce wrote: 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

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Robert Moskowitz
On 05/05/2017 04:46 PM, John R Pierce wrote: 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

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread John R Pierce
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

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Robert Moskowitz
More research... On 05/05/2017 04:35 PM, Robert Moskowitz wrote: On 05/05/2017 03:33 PM, Bill Campbell wrote: On Fri, May 05, 2017, Robert Moskowitz wrote: I thought this worked. Many web pages tell you it works. But bash is ignoring tabs in my here docs. Worst, where there are two

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Robert Moskowitz
On 05/05/2017 03:33 PM, Bill Campbell wrote: On Fri, May 05, 2017, Robert Moskowitz wrote: I thought this worked. Many web pages tell you it works. But bash is ignoring tabs in my here docs. Worst, where there are two tabs, it is functioning as a command expand in bash, where all files in

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Bill Campbell
On Fri, May 05, 2017, Robert Moskowitz wrote: >I thought this worked. Many web pages tell you it works. But bash is >ignoring tabs in my here docs. Worst, where there are two tabs, it is >functioning as a command expand in bash, where all files in the current >directory are listed to complete

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread Robert Moskowitz
On 05/05/2017 02:40 PM, John R Pierce wrote: On 5/5/2017 11:16 AM, Robert Moskowitz wrote: But bash is ignoring tabs in my here docs. tab in bash is indeed filename expansion. what are 'my here' docs ? not familiar with that phrase. A *here document* is a special-purpose code

Re: [CentOS] tabs ignored in here document

2017-05-05 Thread John R Pierce
On 5/5/2017 11:16 AM, Robert Moskowitz wrote: But bash is ignoring tabs in my here docs. tab in bash is indeed filename expansion. what are 'my here' docs ? not familiar with that phrase. -- john r pierce, recycling bits in santa cruz ___

[CentOS] tabs ignored in here document

2017-05-05 Thread Robert Moskowitz
I thought this worked. Many web pages tell you it works. But bash is ignoring tabs in my here docs. Worst, where there are two tabs, it is functioning as a command expand in bash, where all files in the current directory are listed to complete the command. The following is the here doc I