Matej Kosik grabbed a keyboard and wrote:
> Hello,
> 
> This morning I have been puzzled by bash.
> After typing the following command:
> 
>       for i in `seq 1 5`;do echo $i; test $i = 3 && break; done
> 
> I see:
> 
>       1
>       2
>       3
> 
> Which is OK.
> 
> However, if the "break" command appears in a subshell:
> 
>       for i in `seq 1 5`;do echo $i; test $i = 3 && (break); done
> 
> then the "break" command does not seem to have any effect
> 
>       1
>       2
>       3
>       4
>       5
> 
> I am curious, is this something to be expected?

What do you mean by "appears in a subshell?"

               --Dave



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to