stty --help returns illegal option on macOS terminal

442 Views Asked by At

I'm trying to learn stty for serial port communication. But whenever I run some commands including stty --help it returns:

stty: illegal option -- --help

usage: stty [-a|-e|-g] [-f file] [options]

I also tried man stty | grep help with no results returned and Google doesn't help much either. There are two possibilities I can think of:

  • macOS's stty is different from the one on Linux. It seems like macOS's stty is from BSD. I would give you the version if stty --version would work!
  • there is something wrong with my environment settings bash_profile/bashrc

P.S.1. I asked here instead of apple.stackexchange.com because I couldn't find a stty tag over there.

P.S.2. On bash IRC channel I was told that:

--help is a GNUism, which is why OSX's stty doesn't recognize

and that

there are a subset of options and operands that work across the two implementations. You can see what those are here

0

There are 0 best solutions below