[room] Fwd: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes

Michael Shigorin mike на osdn.org.ua
Вт Фев 11 00:04:58 MSK 2014


	Здравствуйте.
Бывает и так...

----- 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


Подробная информация о списке рассылки smoke-room