[cs631apue] Question about the project

Tejas Nadkarni tnadkarn at stevens.edu
Sat Oct 12 12:21:20 EDT 2013


Thanks for this, do we have to override what a user selects based on
stdout?

i.e. ls -x | cat should it override and do single line or honor the -x flag?

I can set the defaults but trying to decide whether to do them after
processing user flags or before.


On Fri, Oct 11, 2013 at 9:44 PM, Jan Schaumann <jschauma at stevens.edu> wrote:

> Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
> > Related to this the references in the man page that talk about default
> > behavior for terminal and a program does that mean we detect what is
> > calling our program and set default behavior?
>
> Yes, but it's not a question of detecting what is "calling" your
> program, but what stdout is connected to.  See isatty(3).
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131012/d0495bfe/attachment.html>


More information about the cs631apue mailing list