I don't see what point you're trying to make. Those two examples work identically in the OSX terminal.
You gotta add firefox to your PATH first, but yeah, this isn't what the terminal is useful for.