The 'cat' command could usefully take multiple arguments.
Project: | JNode Core |
Component: | Code |
Category: | bug report |
Priority: | minor |
Assigned: | Unassigned |
Status: | closed |
Jump to:
Description
For example, 'cat a b c' should write the contents of files 'a', 'b' and 'c' to standard output.
This is what POSIX 'cat' does.
- Login to post comments
#1
Here's a patch that does this, and tidies up the code a bit at the same time. This requires the fix to Syntax to work properly.
#2
This patch appears to be broken.
When applying it I get the following message:
patching file fs/src/fs/org/jnode/fs/command/CatCommand.java
patch: **** malformed patch at line 204:
#3
Oops ... I hand edited it to get rid of a debug println.
I'll regenerate it when I get home from work.
#4
Here's the regenerated version.
#5
I've commited it. Thanks.
#6