News for hackers. Stuff that matters.
Re:Start all of your commands with a comma (2009) by woodruffw on Thursday June 23, 2022 @04:28PM (#31854737)
I don't know if I would actually recommend this, but it works:

    $ touch foo::bar
    $ chmod +x foo::bar
    $ ./foo::bar && echo $?
It's an empty file so it does nothing, but most shells' lexers should be smart enough to not try and lex '::'.

Edit: Forgot to mention, this also works with bash functions and aliases. I'm not sure if POSIX sh will allow it. You can also do things like this (again, not sure I'd recommend it):

    $ alias +x='chmod +x'

There are no comments on this comment yet.