Ticket #3840: menu-fix-decomp.patch

File menu-fix-decomp.patch, 1.2 KB (added by zaytsev, 7 years ago)
  • misc/mc.menu.in

    old new y Gzip or gunzip current file 
    241241        case %f in 
    242242            *.gz|*.[zZ]) DECOMP=-d;; 
    243243        esac 
    244         gzip "$DECOMP" -v %f 
     244        # do *not* add quotes around $DECOMP! 
     245        gzip $DECOMP -v %f 
    245246 
    246247+ t t 
    247248Y       Gzip or gunzip tagged files 
    Y Gzip or gunzip tagged files 
    250251            case "$i" in 
    251252                *.gz|*.[zZ]) DECOMP=-d;; 
    252253            esac 
    253             gzip "$DECOMP" -v "$i" 
     254            gzip $DECOMP -v "$i" 
    254255        done 
    255256 
    256257+ ! t t 
    b Bzip2 or bunzip2 current file 
    259260        case %f in 
    260261            *.bz2) DECOMP=-d;; 
    261262        esac 
    262         bzip2 "$DECOMP" -v %f 
     263        bzip2 $DECOMP -v %f 
    263264 
    264265+ t t 
    265266B       Bzip2 or bunzip2 tagged files 
    B Bzip2 or bunzip2 tagged files 
    268269            case "$i" in 
    269270                *.bz2) DECOMP=-d;; 
    270271            esac 
    271             bzip2 "$DECOMP" -v "$i" 
     272            bzip2 $DECOMP -v "$i" 
    272273        done 
    273274 
    274275+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t