4 ms·
this is actually something i never thought about. if you did copy the lines to be run as root with the preceding #, would it be interpreted as a comment and ign
by dylan604 5y ago
this is actually something i never thought about. if you did copy the lines to be run as root with the preceding #, would it be interpreted as a comment and ignored? some sort of built-in safety from running blindly copied commands?
- bewuethr 5y agoI once read that's the reason why the root prompt is #.
- a1369209993 5y agoI can't speak for whoever came up with it originally, but that is the reason I retained that behaviour in my own shell, and it certainly sounds plausible.
- irjustin 5y agoIf nothing else, it would simply error.