From 55c64fc9cd8ddd7a3d4b3207b9c9c698c7a9ec4b Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 11 Apr 2008 22:57:54 +0000 Subject: 2008-04-12 Chris Johns * libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_script.c: Add support to echo the commands to stdout. This is useful with the -v script option to show commands as the run. Also added support to chdir to the directory the task invoking the script is in. * libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c: Update tro the latest FreeBSD version. * libcsupport/Makefile.am, libcsupport/src/fchown.c: Add fchown support. --- cpukit/libmisc/shell/shell.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/libmisc/shell/shell.h') diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h index 10b10bd6ff..89b041a70f 100644 --- a/cpukit/libmisc/shell/shell.h +++ b/cpukit/libmisc/shell/shell.h @@ -170,7 +170,8 @@ rtems_status_code rtems_shell_script( const char *input, const char *output, int output_append, - int wait + int wait, + int echo ); /* @@ -188,6 +189,8 @@ typedef struct { int exit_shell; /* logout */ int forever ; /* repeat login */ int errorlevel; + int echo; + char cwd[256]; const char* input; const char* output; int output_append; -- cgit v1.2.3