mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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() {
|
||||
if test -f "$1"; then
|
||||
echo "" 1>&2
|
||||
sed -e "${mc_maxlines}s,.*,(more lines follow ...)," -e "${mc_maxlines}q" "$1" 1>&2
|
||||
echo "" 1>&2
|
||||
echo ""
|
||||
sed -e "${mc_maxlines}s,.*,(more lines follow ...)," -e "${mc_maxlines}q" "$1"
|
||||
echo ""
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user