Bash trick of the day

Dan Ritter dsr at tao.merseine.nu
Mon Apr 2 10:28:15 EDT 2007


On Mon, Apr 02, 2007 at 07:23:58AM -0700, Eric C wrote:
> "No. Why would you expect it to exit in 120 seconds?
> -dsr-"
> 
> Because
> WAIT_SECONDS=$(($WAIT_MINUTES * 60))

Now you see why selective quoting is important. You showed us a
single command line and asked why it didn't do something that
it shouldn't do...

-dsr-


-- 
.. .----. --   .-. . .- -.. .. -. --.   -.-- --- ..- .-.   -- .- .. .-.. .-.-.-   .-- .... ---   . .-.. ... .   .. ... ..--.. 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list