[SERVER-13418] mongo does not handle CR/LF Created: 31/Mar/14 Updated: 24/Feb/17 Resolved: 24/Feb/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Charlie Page | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
2.6.0-rc2 |
||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
In a Linux environment mongoD (and probably the other binaries) treats the CR/LF as a CR appended to the last argument, which doesn't work. mongod --oplogSize 8192 using CR/LF results in:
|
| Comments |
| Comment by Charlie Page [ 31/Mar/14 ] |
|
Using a text editor that produces CR/LF line endings. For instance the script file is edited in Windows and the scp'd over to a linux machine. The rest of the script works, mongoD fails. It is also reasonable to assume using winscp or something Linux scripts are edited "in situ" with on a Linux box with a Windows editor. This a very common practice and will likely grow as our use does. Windows has over 90% market share so admins editing scripts with Windows is very reasonable. |
| Comment by Eric Milkie [ 31/Mar/14 ] |
|
I don't understand the use case. I can hit CTRL-M at the end of the command line to reproduce this, but clearly that's not what the problem is in the field. |