[Solved] gedit / bash version issue
Posted: 2022/05/10 18:21:46
{all machines/versions update weekly}
I have RHEL 8 and am writing scripts for all my machines, usually with gedit. My only two CentOS 7 machines (1 local, 1 remote) have been 'choking' on these shared scripts. Investigation reveals that my RHEL 8 gedit is now creating files whose lines end in CR/LF - and CentOS 7 bash doesn't like that additional "CR"!
I've looked on-line and in dconf-editor for how to "turn off" the creation of the 'carriage-return' to no avail. While I could spend hours and write something to go through the shared scripts and delete all the CRs, -- why?
Does anyone know how to:
1. get CentOS 7 bash to not 'choke' on the CRs
2. set (RHEL 8) gedit to NOT insert the CR's (which I assume is their attempt to 'become generic')
??
Thank you.
I have RHEL 8 and am writing scripts for all my machines, usually with gedit. My only two CentOS 7 machines (1 local, 1 remote) have been 'choking' on these shared scripts. Investigation reveals that my RHEL 8 gedit is now creating files whose lines end in CR/LF - and CentOS 7 bash doesn't like that additional "CR"!
I've looked on-line and in dconf-editor for how to "turn off" the creation of the 'carriage-return' to no avail. While I could spend hours and write something to go through the shared scripts and delete all the CRs, -- why?
Does anyone know how to:
1. get CentOS 7 bash to not 'choke' on the CRs
2. set (RHEL 8) gedit to NOT insert the CR's (which I assume is their attempt to 'become generic')
??
Thank you.