blob: 412dcbed9953fa668be22ac26516bea787b45022 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*/
#include "libxfs.h"
#include "command.h"
#include "echo.h"
#include "output.h"
static int echo_f(int argc, char **argv);
static const cmdinfo_t echo_cmd =
{ "echo", NULL, echo_f, 0, -1, 0, N_("[args]..."),
N_("echo arguments"), NULL };
/*ARGSUSED*/
static int
echo_f(
int argc,
char **argv)
{
char *c;
for (c = *(++argv); c; c = *(++argv))
dbprintf("%s ", c);
dbprintf("\n");
return 0;
}
void
echo_init(void)
{
add_command(&echo_cmd);
}