Added cp command.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-04-28 18:47:50 +00:00
parent a9a4bc6e1c
commit 1137bb03cc
3 changed files with 1385 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,22 @@
/*
* Copyright 2005-2007, Ingo Weinhold, bonefish@cs.tu-berlin.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _FSSH_COMMAND_CP_H
#define _FSSH_COMMAND_CP_H
#include "fssh_defs.h"
namespace FSShell {
fssh_status_t command_cp(int argc, const char* const* argv);
} // namespace FSShell
#endif // _FSSH_COMMAND_CP_H

View File

@ -14,6 +14,7 @@
#include <vector>
#include "command_cp.h"
#include "fd.h"
#include "fssh_dirent.h"
#include "fssh_errors.h"
@ -833,6 +834,7 @@ register_commands()
{
CommandManager::Default()->AddCommands(
command_cd, "cd", "change current directory",
command_cp, "cp", "copy files and directories",
command_help, "help", "list supported commands",
command_ln, "ln", "create a hard or symbolic link",
command_ls, "ls", "list files or directories",