system -notty what is it for?

Joshua Root jmr at macports.org
Thu Feb 8 19:37:14 UTC 2018


On 2018-2-9 06:18 , Ken Cunningham wrote:
> I noted here
> 
> https://github.com/macports/macports-base/blob/master/src/pextlib1.0/system.c
> 
> an option for system called “-notty”
> 
> Searching macports-ports seems to show no ports use this.
> 
> What would that option be useful for?

Anything that behaves differently depending on whether there is a
controlling terminal. Specifically used in base for CVS login.

<https://github.com/macports/macports-base/commit/e4991135813894a58e43f1274b71d8fa96bcb80f#diff-cea5fa72f03577bfc3aad20a1d706993>

- Josh


More information about the macports-dev mailing list