bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange return codes of continue


From: Roman Rakus
Subject: Strange return codes of continue
Date: Fri, 27 Jun 2008 11:36:32 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

This is realy strange. I have two examples
First:

while [ 1 ]; do
 while [ 1 ]; do
   continue 0
 done
done
echo $?


Second:

while [ 1 ]; do
 while [ 1 ]; do
   continue 0
 done
 echo $?
done
echo $?

In first case I have echoed 1. And I am expecting the same result in second case, but I get 0. Can anyone help me and say where is the difference?

Attachment: rrakus.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]