Ticket #4271: text.sh.v1.diff

File text.sh.v1.diff, 420 bytes (added by ZlatkO, 3 years ago)

Patch (variant #1)

  • text.sh

    old new  
    1010 
    1111[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" 
    1212 
     13# if awk is not called 'awk" on your system, then set $MC_AWK accordingly 
     14export MANWIDTH="$(stty size < /proc/$(ps jhp $PPID | ${MC_AWK:-awk} '{print $1}')/fd/0 | cut -f2 -d' ')" 
     15 
    1316get_unpacker() { 
    1417    filetype=$1 
    1518    case "${filetype}" in