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 241 241 case %f in 242 242 *.gz|*.[zZ]) DECOMP=-d;; 243 243 esac 244 gzip "$DECOMP" -v %f 244 # do *not* add quotes around $DECOMP! 245 gzip $DECOMP -v %f 245 246 246 247 + t t 247 248 Y Gzip or gunzip tagged files … … Y Gzip or gunzip tagged files 250 251 case "$i" in 251 252 *.gz|*.[zZ]) DECOMP=-d;; 252 253 esac 253 gzip "$DECOMP"-v "$i"254 gzip $DECOMP -v "$i" 254 255 done 255 256 256 257 + ! t t … … b Bzip2 or bunzip2 current file 259 260 case %f in 260 261 *.bz2) DECOMP=-d;; 261 262 esac 262 bzip2 "$DECOMP"-v %f263 bzip2 $DECOMP -v %f 263 264 264 265 + t t 265 266 B Bzip2 or bunzip2 tagged files … … B Bzip2 or bunzip2 tagged files 268 269 case "$i" in 269 270 *.bz2) DECOMP=-d;; 270 271 esac 271 bzip2 "$DECOMP"-v "$i"272 bzip2 $DECOMP -v "$i" 272 273 done 273 274 274 275 + f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t