I see this symbol all the time and my book has yet to clarify what it means. None of the man pages or web searches clarify this either. At first I believed it to be a I/O symbol, but that never works when I try to play with it.
For example, in the patch
Man and Info documents, it say
You can also specify where to read the patch from with the '-i PATCHFILE' or '--input=PATCHFILE' option. If you do not specify PATCHFILE, or if PATCHFILE is
'-'
, 'path' reads the patch (that is, the 'diff' output) from the standard input.
When ever I see the '-' symbol, it is almost followed (at some point) by some mention of standard input.
What am I missing here? Does this symbol reference standard input? What does '-' mean in the context of Bash?
patch
chose to give a meaning to (encouraged by POSIX); it has no innate meaning. I know there's a duplicate of this question around, but "-" is a nightmare to search for. I will try to find it. – Michael Homer Mar 25 '16 at 06:28-
used only with cd? – Michael Homer Mar 25 '16 at 06:32