From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Date: Mon, 10 Feb 2014 22:04:58 +0200 From: Michael Shigorin To: smoke-room@lists.altlinux.org Message-ID: <20140210200458.GR30726@osdn.org.ua> Mail-Followup-To: smoke-room@lists.altlinux.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i Subject: [room] Fwd: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes X-BeenThere: smoke-room@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: mike@altlinux.org, =?koi8-r?b?69XM2NTV0s7ZyiDPxtTP0MnL?= List-Id: =?koi8-r?b?69XM2NTV0s7ZyiDPxtTP0MnL?= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 20:05:05 -0000 Archived-At: List-Archive: Здравствуйте. Бывает и так... ----- Forwarded message from Webmaster nixCraft ----- Date: Mon, 10 Feb 2014 17:46:41 +0000 Subject: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes There is a new comment on the post "My 10 UNIX Command Line Mistakes". http://www.cyberciti.biz/tips/my-10-unix-command-line-mistakes.html Author: Moataz Elmasry Comment: Did the following in a script [ -d ${MY_DIR} ] && rm -rf ${MY_DIR}/* ${MY_DIR} was not defined at all and it turned out, that [ -d ] returns true, so the command rm -rf /* has been executed See all comments on this post here: http://www.cyberciti.biz/tips/my-10-unix-command-line-mistakes.html#comments To manage your subscriptions or to block all notifications from this site, click the link below: [snip] ----- End forwarded message ----- -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info