Remove touch command

This commit is contained in:
Anton Kochkov 2021-02-26 18:34:46 +08:00 committed by Anton Kochkov
parent f3dc8385e8
commit 9ed2b289a4
2 changed files with 0 additions and 23 deletions

View file

@ -26,7 +26,6 @@ static const char *help_msg_t[] = {
"to", " <path>", "Load types from C header file",
"toe", " [type.name]", "Open cfg.editor to edit types",
"tos", " <path>", "Load types from parsed Sdb database",
"touch", " <file>", "Create or update timestamp in file",
"tp", " <type> [addr|varname]", "cast data at <address> to <type> and print it (XXX: type can contain spaces)",
"tpv", " <type> @ [value]", "Show offset formatted for given type",
"tpx", " <type> <hexpairs>", "Show value for type with specified byte sequence (XXX: type can contain spaces)",
@ -71,7 +70,6 @@ static const char *help_msg_to[] = {
"to", " -", "Open cfg.editor to load types",
"to", " <path>", "Load types from C header file",
"tos", " <path>", "Load types from parsed Sdb database",
"touch", " <file>", "Create or update timestamp in file",
NULL
};
@ -1535,14 +1533,6 @@ RZ_IPI int rz_cmd_type(void *data, const char *input) {
}
if (input[1] == ' ') {
types_open_file(core, input + 2);
} else if (input[1] == 'u') {
// "tou" "touch"
char *arg = strchr(input, ' ');
if (arg) {
rz_file_touch(arg + 1);
} else {
eprintf("Usage: touch [filename]");
}
} else if (input[1] == 's') { // "tos"
types_open_sdb(core, input + 3);
} else if (input[1] == 'e') { // "toe"

View file

@ -7,16 +7,3 @@ EXPECT=<<EOF
EOF
RUN
NAME=touch
FILE=--
CMDS=<<EOF
rm .foo.touch
ls .foo.touch
touch .foo.touch
ls .foo.touch
rm .foo.touch
EOF
EXPECT=<<EOF
.foo.touch
EOF
RUN