Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>


1398             ldapstatus=Error
1399         fi
1400 
1401         zenity --text-info \
1402             --width=700 \
1403             --height=300 \
1404             --title="$ldaptitle: $ldapstatus" \
1405             --filename=$ldapout
1406 
1407         rm -f $ldapout
1408 
1409 
1410 }
1411 
1412 tearDownZones() {
1413         if [ $DISP -eq 0 ] ; then
1414                 if [ $FORCE -eq 0 ] ; then
1415                         gettext "OK to destroy all zones [y|N]? "
1416                         read ans
1417                         printf "%s\n" "$ans" \
1418                             | /usr/xpg4/bin/grep -Eq "$(locale yesexpr)"
1419                         if [ $? -ne 0 ] ; then
1420                                 gettext "canceled.\n"
1421                                 return 1
1422                         fi
1423                 fi
1424                 gettext "destroying all zones ...\n"
1425         else
1426                 killall=$(zenity --question \
1427                     --title="$title" \
1428                     --width=330 \
1429                     --text="$msg_confirmkill")
1430                 if [[ $? != 0 ]]; then
1431                         return
1432                 fi
1433         fi
1434 
1435         for p in $(zoneadm list -cp|grep -v global:) ; do
1436                 zonename=$(echo "$p"|cut -d : -f2)
1437                 if [ $DISP -eq 0 ] ; then
1438                         gettext "destroying zone $zonename ...\n"




1398             ldapstatus=Error
1399         fi
1400 
1401         zenity --text-info \
1402             --width=700 \
1403             --height=300 \
1404             --title="$ldaptitle: $ldapstatus" \
1405             --filename=$ldapout
1406 
1407         rm -f $ldapout
1408 
1409 
1410 }
1411 
1412 tearDownZones() {
1413         if [ $DISP -eq 0 ] ; then
1414                 if [ $FORCE -eq 0 ] ; then
1415                         gettext "OK to destroy all zones [y|N]? "
1416                         read ans
1417                         printf "%s\n" "$ans" \
1418                             | /usr/bin/grep -Eq "$(locale yesexpr)"
1419                         if [ $? -ne 0 ] ; then
1420                                 gettext "canceled.\n"
1421                                 return 1
1422                         fi
1423                 fi
1424                 gettext "destroying all zones ...\n"
1425         else
1426                 killall=$(zenity --question \
1427                     --title="$title" \
1428                     --width=330 \
1429                     --text="$msg_confirmkill")
1430                 if [[ $? != 0 ]]; then
1431                         return
1432                 fi
1433         fi
1434 
1435         for p in $(zoneadm list -cp|grep -v global:) ; do
1436                 zonename=$(echo "$p"|cut -d : -f2)
1437                 if [ $DISP -eq 0 ] ; then
1438                         gettext "destroying zone $zonename ...\n"