We're building an app which is intended to be deployed onto Windows, Unix, and Mac versions of Splunk. In our app's config files, which OS's line ending format should we use? The question covers a few angles:
here is a related, very useful question/answer:
http://answers.splunk.com/questions/6369/halp-my-nix-deployment-server-is-propagating-corrupted-conf...
A ^M (i.e., CR) character at the end of every line.
What do vi users see when they open a Windows-line-ended file? Is the file not editable or not viewable?
Agreed. I primarily use Unix EOLs in our custom apps which are deployed across platforms, and that has worked well. The notepad thing is an annoyance, but generally you shouldn't do any editing on the deployment client anyways (since any changes would be overwritten on the next deployment). It is a pain when you just want to quickly view a config file. ;-(