* extfs/a: Use more portable way to redirect all output to

/dev/null.  From PLD Linux Distribution.
This commit is contained in:
Pavel Roskin 2002-08-26 04:04:28 +00:00
parent b54612721c
commit 44197c130d
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2002-08-26 Pavel Roskin <proski@gnu.org>
* extfs/a: Use more portable way to redirect all output to
/dev/null. From PLD Linux Distribution.
2002-08-24 Pavel Roskin <proski@gnu.org>
* vfs.c (vfs_parse_ls_lga): Better error message, avoid empty

View File

@ -26,29 +26,29 @@ SWITCH: for ( $ARGV[0] ) {
/mkdir/ && do {
shift; shift;
exit 1 if scalar(@ARGV) != 1;
system("$mmd $disk:/$ARGV[0] >& /dev/null");
system("$mmd $disk:/$ARGV[0] >/dev/null 2>&1");
exit 0; };
/rmdir/ && do {
shift; shift;
exit 1 if scalar(@ARGV) != 1;
system("$mrd $disk:/$ARGV[0] >& /dev/null");
system("$mrd $disk:/$ARGV[0] >/dev/null 2>&1");
exit 0; };
/rm/ && do {
shift; shift;
exit 1 if scalar(@ARGV) != 1;
system("$mdel $disk:/$ARGV[0] >& /dev/null");
system("$mdel $disk:/$ARGV[0] >/dev/null 2>&1");
exit 0; };
/copyout/ && do {
shift; shift;
exit 1 if scalar(@ARGV) != 2;
( $src, $dest ) = @ARGV;
system("$mcopy $disk:/$src $dest >& /dev/null");
system("$mcopy $disk:/$src $dest >/dev/null 2>&1");
exit 0; };
/copyin/ && do {
shift; shift;
exit 1 if scalar(@ARGV) != 2;
( $dest, $src ) = @ARGV;
system("$mcopy $src $disk:/$dest >& /dev/null");
system("$mcopy $src $disk:/$dest >/dev/null 2>&1");
exit 0; };
/.*/ && do { # an unfamiliar command
exit 1; };