-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplease.1
More file actions
70 lines (65 loc) · 1.65 KB
/
please.1
File metadata and controls
70 lines (65 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.\"
.\" Manpage of please command
.\" Copyright 2023 Hiroyuki Kikuchi ([email protected])
.\"
.\" @(#)please.1
.\"
.TH PLEASE 1 "Janualy 5, 2023"
.SH NAME
please \- executes nothing, but you can tell "please" to any commands.
.SH SYNOPSIS
.B please
[
.I ...
]
.SH DESCRIPTION
This command executes nothing, nothing means this command executes the following arguments as command,
or passes through the pipeline input. But you can tell "please" to any commands.
.SH EXIT STATUS
when no arguments : returns 0
.PP
when arguments exist : returns the following command's exit code. when opening following command was failed,
this returns 1. and when following command did not terminate normally, this returns 1.
.SH EXAMPLES
.PP
.RS 6
$ please ls
.RE
.PP
Return the result of ls(1) command. This can make you feel like you're saying
.I "Please list (the files)."
.PP
.RS 6
$ ls | please
.RE
.PP
Pass through the result of ls(1) command. This is like
.I "List (the files), please"
.PP
.RS 6
$ ls | please wc
.RE
.PP
Execute wc(1) (words count command) and wc(1) will get the ls(1) result from pipeline.
.PP
How this works is because of popen(3) function:
.PP
.RS 6
POPEN(3)
.RE
.RS 12
.B ...
the command's standard input is the same as that of the process that called popen(). ...
.RE
.PP
With
.B please
command's case, this function fortunately and completely fits for the purpose.
.SH AUTHOR
Hiroyuki Kikuchi ([email protected])
.SH MORE DETAILS
Joke Command / Meme Command : please
.\" リンクの書き方が不明だったため両方書いておく。
.URL https://hilog07.blogspot.com/2022/02/blog-post.html "Open Link"
.UR https://hilog07.blogspot.com/2022/02/blog-post.html
.UE