Fix for password-protected .rar files

Andy Shevchenko andy at pylesos.interdon.net
Mon Jul 24 15:54:27 UTC 2006


Denis Vlasenko пишет:
> -	$ISOINFO -i "$1" -x "/$2" > "$3" 
> +    $ISOINFO -i "$1" -x "/$2" > "$3" 
> -  RPM="rpm --nosignature"
> +    RPM="rpm --nosignature"
> -  RPM="rpm"
> +    RPM="rpm"
> -  RPM="rpm --nosignature"
> +    RPM="rpm --nosignature"
> -  RPM="rpm"
> +    RPM="rpm"
> -	$XAR tv "$1" | sed 's,^,-,;s, , 1 ,;s,/, ,'
> +    $XAR tv "$1" | sed 's,^,-,;s, , 1 ,;s,/, ,'
What the main idea for removing spaces is here?

> -for dir in $PATH; do
> +for dir in "$PATH"; do
I think it's wrong.
Consider two lines
   aaa bbb
   "aaa bbb"
as for argument list.
Imagine difference here.

-- 
With best regards,
Andy Shevchenko.      mailto: andy at smile.org.ua





More information about the mc-devel mailing list