diff --git a/misc/mc.menu b/misc/mc.menu
index 0cdcee4..e205719 100644
a
|
b
|
B Bzip2 or bunzip2 tagged files |
284 | 284 | for i in %t |
285 | 285 | do |
286 | 286 | unset DECOMP |
287 | | case $i in |
| 287 | case "$i" in |
288 | 288 | *.bz2) DECOMP=-d;; |
289 | 289 | esac |
290 | | bzip2 $DECOMP -v $i |
| 290 | bzip2 $DECOMP -v "$i" |
291 | 291 | done |
292 | 292 | |
293 | 293 | + f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t |
… |
… |
z Extract compressed tar file to subdirectory |
303 | 303 | *.tar.bz2) D="`basename %f .tar.bz2`"; set bunzip2 -c ;; |
304 | 304 | *.tar.F) D="`basename %f .tar.F`"; set freeze -dc; |
305 | 305 | esac |
306 | | mkdir $D; cd $D && ($1 $2 ../%f | tar xvf -) |
| 306 | mkdir "$D"; cd "$D" && ($1 $2 ../%f | tar xvf -) |
307 | 307 | |
308 | 308 | + t t |
309 | 309 | Z Extract compressed tar files to subdirectories |
… |
… |
Z Extract compressed tar files to subdirectories |
311 | 311 | do |
312 | 312 | set gzip -dc |
313 | 313 | unset D |
314 | | case $i in |
| 314 | case "$i" in |
315 | 315 | *.tar.gz) D="`basename $i .tar.gz`";; |
316 | 316 | *.tgz) D="`basename $i .tgz`";; |
317 | 317 | *.tpz) D="`basename $i .tpz`";; |
… |
… |
Z Extract compressed tar files to subdirectories |
320 | 320 | *.tar.F) D="`basename $i .tar.F`"; set freeze -dc;; |
321 | 321 | *.tar.bz2) D="`basename $i .tar.bz2`"; set bunzip2 -c;; |
322 | 322 | esac |
323 | | mkdir $D; (cd $D && $1 $2 ../$i | tar xvf -) |
| 323 | mkdir "$D"; (cd "$D" && $1 $2 ../$i | tar xvf -) |
324 | 324 | done |
325 | 325 | |
326 | 326 | + f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t |
… |
… |
c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
341 | 341 | bz2) D="`basename %f .bz2`";; |
342 | 342 | esac |
343 | 343 | if [ "$EXT" = "bz2" ]; then |
344 | | bunzip2 -v %f ; gzip -f9 -v $D |
| 344 | bunzip2 -v %f ; gzip -f9 -v "$D" |
345 | 345 | else |
346 | | gunzip -v %f ; bzip2 -v $D |
| 346 | gunzip -v %f ; bzip2 -v "$D" |
347 | 347 | fi |
348 | 348 | |
349 | 349 | + t t |
… |
… |
C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
353 | 353 | do |
354 | 354 | unset D |
355 | 355 | unset EXT |
356 | | case $1 in |
| 356 | case "$1" in |
357 | 357 | *.tgz) EXT=tgz;; |
358 | 358 | *.tpz) EXT=tpz;; |
359 | 359 | *.Z) EXT=Z;; |
… |
… |
C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 |
368 | 368 | bz2) D="`basename $1 .bz2`";; |
369 | 369 | esac |
370 | 370 | if [ "$EXT" = "bz2" ]; then |
371 | | bunzip2 -v $1 |
372 | | gzip -f9 -v $D |
| 371 | bunzip2 -v "$1" |
| 372 | gzip -f9 -v "$D" |
373 | 373 | else |
374 | | gunzip -v $1 |
375 | | bzip2 -v $D |
| 374 | gunzip -v "$1" |
| 375 | bzip2 -v "$D" |
376 | 376 | fi |
377 | 377 | shift |
378 | 378 | done |