mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
The error log files are printed to stdout instead of stderr. This makes it
easier to use a pager with mc-test.
This commit is contained in:
parent
6edc2743db
commit
3ce4818b9b
@ -170,9 +170,9 @@ fi
|
|||||||
|
|
||||||
show_file() {
|
show_file() {
|
||||||
if test -f "$1"; then
|
if test -f "$1"; then
|
||||||
echo "" 1>&2
|
echo ""
|
||||||
sed -e "${mc_maxlines}s,.*,(more lines follow ...)," -e "${mc_maxlines}q" "$1" 1>&2
|
sed -e "${mc_maxlines}s,.*,(more lines follow ...)," -e "${mc_maxlines}q" "$1"
|
||||||
echo "" 1>&2
|
echo ""
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user