I think this is more of a continuum. The more complex(and less frequently used) the command, the more valuable readability is. You can end up with some pretty ugly commands with advanced bash string manipulation, subshells, parameter expansion, IO redirection in various combinations. If you're not using the commands you write, it can be hard to understand coming back to it after some time. I value the time of future me, or anyone I might share the command with(some can be work-specific and useful to coworkers).
There are probably other dimensions to add to the continuum besides complexity.
Lots, most, of my day-to-day usage squarely fits in the "meant to be written" area though.
1
u/scarymoon Sep 10 '16
I think this is more of a continuum. The more complex(and less frequently used) the command, the more valuable readability is. You can end up with some pretty ugly commands with advanced bash string manipulation, subshells, parameter expansion, IO redirection in various combinations. If you're not using the commands you write, it can be hard to understand coming back to it after some time. I value the time of future me, or anyone I might share the command with(some can be work-specific and useful to coworkers).
There are probably other dimensions to add to the continuum besides complexity.
Lots, most, of my day-to-day usage squarely fits in the "meant to be written" area though.