- 论坛徽章:
- 13
|
想着which fetion.sh | xargs vim 应该是可以的,不知道问题出现在哪里? 是bug 还是 我之前的理解有问题?
不是bug 请仔细看 man xargs- NAME
- xargs — construct argument list(s) and execute utility
- SYNOPSIS
- xargs [-0oprt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
- [-J replstr] [-L number] [-n number [-x]] [-P maxprocs] [-s size]
- [utility [argument ...]]
- DESCRIPTION
- The xargs utility reads space, tab, newline and end-of-file delimited
- strings from the standard input and executes utility with the strings as
- arguments.
- Any arguments specified on the command line are given to utility upon
- each invocation, followed by some number of the arguments read from the
- standard input of xargs. This is repeated until standard input is
- exhausted.
- Spaces, tabs and newlines may be embedded in arguments using single
- (`` ' '') or double (``"'') quotes or backslashes (``\''). Single quotes
- escape all non-single quote characters, excluding newlines, up to the
- matching single quote. Double quotes escape all non-double quote charac‐
- ters, excluding newlines, up to the matching double quote. Any single
- character, including newlines, may be escaped by a backslash.
复制代码 |
|