General Computing
bash debian command-line-arguments read
Updated Fri, 20 May 2022 17:15:46 GMT

Why man read don't contain any argument description in my debian?


As far as i know that read in bash contains many argument such as -a -d -e -r. The webpage list all arguments of read.
read's arguments

In my console, man read contains no argument on it. I upload man read > read.txt into dropbox,please download it and verify.

man read > read.txt




Solution

Why man read don't contain any argument description in my debian?

Use help read instead.

read is a bash builtin command. to display options, description, you should use the help command. see help help or the gnu documentation:

help
    help [-dms] [pattern]
    Display helpful information about builtin commands. If pattern is specified, help gives detailed help on all commands matching pattern, otherwise a list of the builtins is printed.
    Options, if supplied, have the following meanings:
    -d
        Display a short description of each pattern 
    -m
        Display the description of each pattern in a manpage-like format 
    -s
        Display only a short usage synopsis for each pattern