code-tutorial.com

The best resources for developers

Shell scripting input redirection oddities. Shell scripting input redirection oddities.

$ echo $$;cat | read a
10637
    |                       |-bash(10637)-+-bash(10786)
    |                       |             `-cat(10785)

Tags: dash-shell

Source: By Ryan Ahearn as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 2.5