Messages in this thread | | | Subject | Re: [PATCH] checkpatch.pl: show how to read from stdin | From | Daniel Walker <> | Date | Mon, 14 Jan 2008 11:51:46 -0800 |
| |
On Mon, 2008-01-14 at 20:31 +0100, Stefan Richter wrote: > AFAIU Daniel's patch still leaves the possibility to use the '-' > syntax, > doesn't it? > > (The program 'cat' is of the kind which always reads from stdin if no > file name is given, or if '-' is given instead of a file name. So, > 'cat' allows Andy to start it and then type something in for cat to > process in either case, while checkpatch supports this only with '-' > as > argument. OTOH it's easier to get checkpatch to print a usage note > than > it is with cat. There you have to type no less than 'cat --help', or > at > least with GNU cat.)
I tried the following with my changes,
./scripts/checkpatch.pl - cat | ./scripts/checkpatch.pl
Both allowed pasting patches and pressing Ctrl-D , then it processed the patch..
and
cat <patchname> | ./scripts/checkpatch.pl
Also processed the patch ..
Daniel
| |