help-make
[Top][All Lists]
Advanced

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

Re: ignore errors on specific command


From: Oleksandr Gavenko
Subject: Re: ignore errors on specific command
Date: Wed, 31 Mar 2010 14:19:30 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 2010.03.31 14:03, Payal wrote:
On Wed, Mar 31, 2010 at 11:16:53AM +0200, Stephan Beal wrote:
On Wed, Mar 31, 2010 at 10:27 AM, Payal<address@hidden>wrote:

all:
        cmd1 ; cmd2; cmd3


On the same line how do I turn OFF echoing of cmd2 and cmd3 only.


  cmd1; cmd2; cmd3 2>/dev/null 1>/dev/null


So, to ignore errors from cmd3, I have to do,

      cmd1 ; cmd2 ; cmd3 || true

right?
Yea, and more pretty as said before with colon:

  cmd1 ; cmd2 ; cmd3 || :

--
С уважением, Александр Гавенко.




reply via email to

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