Skip to main content
4 events
when toggle format what by license comment
Feb 5, 2019 at 18:29 comment added Gilles 'SO- stop being evil' @TheDudeAbides I read about using compgen this way on Unix & Linux, I don't know who first proposed it. (I stopped using bash as my main shell before it had programmable completion.) In programming it's usually a bad idea to ask for permission because there's a risk that the permission check will not match what you're actually doing, either because of a coding error (where you aren't quite checking what you think you're checking) or because what you checked changed before you used it.
Feb 5, 2019 at 18:21 comment added Kevin E +1 for a totally unanticipated schooling in Bash programmable completion, which forced me to go to the manual to decipher what compgen -A shopt -X ... even meant.
Feb 5, 2019 at 18:09 comment added Kevin E That is not where my brain would've gone, but I like the compgen proposal. That's varsity level stuff right there! Avoiding redirection to /dev/null is just a personal preference. I like to ask for permission instead of forgiveness, if that makes sense? :)
Feb 5, 2019 at 17:44 history answered Gilles 'SO- stop being evil' CC BY-SA 4.0