The UNIX and Linux Forums  

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




Thread: wait ${!}
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-06-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
${!} an alternate syntax for $! which is the PID of the last background command (presumably here, your graph application). The script simply waits for the application to finish.

Generally, ${anything} is just another way to write $anything -- in some situations, the braces are required for disambiguation (${anything}too means something else than $anythingtoo which means ${anythingtoo}) but some people like to put them everywhere just out of habit, or for clarity.