Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

ghost clobbers multiple-hosts-per-line entries #2

Closed
botandrose opened this issue Mar 8, 2010 · 4 comments
Closed

ghost clobbers multiple-hosts-per-line entries #2

botandrose opened this issue Mar 8, 2010 · 4 comments

Comments

@botandrose
Copy link

if you have a line with multiple hosts: e.g.

127.0.0.1 project_a.local project_b.local project_c.local

and then run ghost add project_d.local, itll clobber all but the first host of that line:

127.0.0.1 project_d.local
127.0.0.1 project_a.local

@bjeanes
Copy link
Owner

bjeanes commented Mar 8, 2010

I'll need to improve my test suite to cover this (it's currently a few years old and poorly done) then I can try to patch this up. Should be pretty damn easy, though.

@bjeanes
Copy link
Owner

bjeanes commented Mar 11, 2010

I can not replicate this bug. When I try to recreate this scenario my hosts file gets written out as follows:

127.0.0.1 project_a.local
127.0.0.1 project_b.local
127.0.0.1 project_c.local
127.0.0.1 project_d.local
127.0.0.1 localhost
127.0.0.1 my-machine-name.local

I thought that perhaps your hosts were separated by not just a space (tab, multiple spaces, etc), but even doing that my hosts file is still written out fine.

Is there any more info you can give me?

@botandrose
Copy link
Author

strange, i wish i had the foresight to back up my old /etc/hosts before trying out ghost. i think my other dev machine has a similar pre-ghost /etc/hosts. ill see if i cant come up with a repeatably-failing test case.

@bjeanes
Copy link
Owner

bjeanes commented Sep 24, 2011

I'm closing this. @botandrose let me know if you ever reproduce...

@bjeanes bjeanes closed this as completed Sep 24, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants