The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 07-03-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,585
ant:/home/vbe/scripts $ all_OMC=2
ant:/home/vbe/scripts $ if [ $all_OMC -ne 1 ]^Jthen^Jprintf "Please enter a name : [>
Please enter a name : []

It does works...
So I believe it before and you dont enter the condition...
Why not try with sh -x ?