Культурный офтопик
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: smoke-room@lists.altlinux.org
Subject: [room] Fwd: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes
Date: Mon, 10 Feb 2014 22:04:58 +0200
Message-ID: <20140210200458.GR30726@osdn.org.ua> (raw)

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

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


                 reply	other threads:[~2014-02-10 20:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140210200458.GR30726@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=mike@altlinux.org \
    --cc=smoke-room@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git