Does Linux Shell execute fflush(stdout) first before executing and writing the result of the command passed by the user?

41 Views Asked by At

Let's say that I want to know my current working directory, so I type pwd in the prompt and press Enter.

Before getting my current working directory path, does the Linux Shell execute fflush(stdout) FIRST, and then do its stuff to return the path?

If so, why?

0

There are 0 best solutions below