Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mknod: move help strings to markdown file #4529

Merged
merged 3 commits into from
Mar 19, 2023

Conversation

papparapa
Copy link
Contributor

#4368

mknod -h outputs the following.

$ ./target/debug/coreutils mknod -h
Create the special file NAME of the given TYPE.

Usage: ./target/debug/coreutils mknod [OPTION]... NAME TYPE [MAJOR MINOR]

Arguments:
  <NAME>   name of the new file
  <TYPE>   type of the new file (b, c, u or p)
  [MAJOR]  major file type
  [MINOR]  minor file type

Options:
  -m, --mode <MODE>  set file permission bits to MODE, not a=rw - umask
  -h, --help         Print help
  -V, --version      Print version

Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE    set file permission bits to MODE, not a=rw - umask
--help     display this help and exit
--version  output version information and exit

Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
must be omitted when TYPE is p.  If MAJOR or MINOR begins with 0x or 0X,
it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
otherwise, as decimal.  TYPE may be:

b      create a block (buffered) special file
c, u   create a character (unbuffered) special file
p      create a FIFO

NOTE: your shell may have its own version of mknod, which usually supersedes
the version described here.  Please refer to your shell's documentation
for details about the options it supports.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

src/uu/mknod/mknod.md Outdated Show resolved Hide resolved
src/uu/mknod/mknod.md Outdated Show resolved Hide resolved
papparapa and others added 2 commits March 19, 2023 00:42
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/tail-2/inotify-dir-recreate is no longer failing!

@sylvestre sylvestre merged commit 7053543 into uutils:main Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants