Sometime in the last couple of weeks something happened that completely broke my sudo command. Now everytime I try to 'sudo' anything it just comes up with a blank line. Nothing I can type into terminal (or iterm) does anything and I need to close the window.
I've got backups but don't know what files would have been broken and don't just want to reset my mac to an arbitrary point in time and loose other work. I mostly just use sudo to edit /private/etc/hosts file and somehow now it's letting me edit and save that without sudo.
I tried creating a new admin user and sudoing from that but it's the same.
I've tried following advice on various forums but none of them are working and I'm getting to the point I'm probably doing more damage to my mac. Anyone got any ideas of how to fix it or any files I can drag across from my backup that might fix it?
Thanks
[doublepost=1491871154][/doublepost]I tried
which sudo
and it comes up with /usr/bin/sudo which seems to be a valid file name

I've got backups but don't know what files would have been broken and don't just want to reset my mac to an arbitrary point in time and loose other work. I mostly just use sudo to edit /private/etc/hosts file and somehow now it's letting me edit and save that without sudo.
I tried creating a new admin user and sudoing from that but it's the same.
I've tried following advice on various forums but none of them are working and I'm getting to the point I'm probably doing more damage to my mac. Anyone got any ideas of how to fix it or any files I can drag across from my backup that might fix it?
Thanks
[doublepost=1491871154][/doublepost]I tried
which sudo
and it comes up with /usr/bin/sudo which seems to be a valid file name