mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* extfs/a: Use more portable way to redirect all output to
/dev/null. From PLD Linux Distribution.
This commit is contained in:
parent
b54612721c
commit
44197c130d
@ -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
|
||||
|
10
vfs/extfs/a
10
vfs/extfs/a
@ -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; };
|
||||
|
Loading…
Reference in New Issue
Block a user