ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: ABATAPA <altlinux-community@yandex.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm] rm - не работает рекурсивное удаление?
Date: Fri, 16 Sep 2005 11:44:30 +0400
Message-ID: <200509161144.30636.altlinux-community@yandex.ru> (raw)
In-Reply-To: <200509152108.01714.dlagovna@mail.ru>

Четверг 15 Сентябрь 2005 21:08, Sergey Stepanov написал:
> А если я в верхнем каталоге делаю команду
> rm -R *.tga
> То получаю ошибку
> rm: невозможно выполнить lstat для `*.tga': No such file or directory
Потому что шаблон не разворачивается, и bash передает его "как есть", т.е. как 
'*.tga'. rm пытается определить - чем же является '*.tga' - файлом, или 
каталогом, но получает ошибку "No such file or directory", т.к. в текущем 
каталоге _действительно_ нет такого файла или каталога.
А вообще - внимательно читаем man bash, и учим самые азы: в команде rm 
аргумент - цель, т.е. файл (каталог), который должен существовать, а не 
маска. glob(), т.е. "разворачивание" маски, делает не rm, а bash.
-- 
ABATAPA


      parent reply	other threads:[~2005-09-16  7:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15 17:08 Sergey Stepanov
2005-09-15 17:22 ` Michael Holzman
2005-09-15 17:40   ` Sergey Stepanov
2005-09-15 17:53     ` Dmitry V. Levin
2005-09-16 16:41       ` [Comm][JT] " Sergey Stepanov
2005-09-16 18:25         ` Pavel Usischev
2005-09-16 19:54         ` Vasily Kolomeets
2005-09-16 20:27         ` Alexey Rusakov
2005-09-20  9:50         ` [Comm] Administrativia Michael Shigorin
2005-09-20 10:05           ` Владимир Гусев
2005-09-15 17:53     ` [Comm] rm - не работает рекурсивное удаление? Michael Holzman
2005-09-15 19:02 ` [Comm] " Michael Shigorin
2005-09-16  7:44 ` ABATAPA [this message]

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=200509161144.30636.altlinux-community@yandex.ru \
    --to=altlinux-community@yandex.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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