SOURCES: service_generator.sh - use == instead of = for tests

Jakub Bogusz qboosh at pld-linux.org
Wed Jun 21 11:32:40 CEST 2006


On Sun, Jun 11, 2006 at 07:02:34PM +0200, radek wrote:
> Author: radek                        Date: Sun Jun 11 17:02:34 2006 GMT
> Module: SOURCES                       Tag: HEAD
> ---- Log message:
> - use == instead of = for tests

Why? "=" is standard test operator.

> diff -u SOURCES/service_generator.sh:1.6 SOURCES/service_generator.sh:1.7
> --- SOURCES/service_generator.sh:1.6	Mon Jan 30 18:06:56 2006
> +++ SOURCES/service_generator.sh	Sun Jun 11 19:02:29 2006
> @@ -9,7 +9,7 @@
>  fi
>  
>  # action stop implies quiet mode and check disabling
> -if [ $action = stop ]; then
> +if [ "$action" == "stop" ]; then
>  	quiet=1
>  else
>  	check=1


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/


More information about the pld-devel-en mailing list