* [sisyphus] locate
@ 2007-04-16 6:51 A.Kitouwaykin
2007-04-16 10:51 ` Pavlov Konstantin
0 siblings, 1 reply; 3+ messages in thread
From: A.Kitouwaykin @ 2007-04-16 6:51 UTC (permalink / raw)
To: sisyphus
Добрый день.
С переездом в Сизиф заметил такую вещь:
команда "locate rpmnew rpmsave" выдает список файлов,
соответствующих только первому образцу. Раньше
возвращались все, и rpmnew, и rpmsave.
Чтение ман не просветило. Бага?
--
Китайкин Анатолий Константинович
ОАО "Радиоавионика", СПб
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] locate
2007-04-16 6:51 [sisyphus] locate A.Kitouwaykin
@ 2007-04-16 10:51 ` Pavlov Konstantin
2007-04-16 12:24 ` A.Kitouwaykin
0 siblings, 1 reply; 3+ messages in thread
From: Pavlov Konstantin @ 2007-04-16 10:51 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
On Mon, Apr 16, 2007 at 10:51:33AM +0400, A.Kitouwaykin wrote:
> Добрый день.
>
> С переездом в Сизиф заметил такую вещь:
>
> команда "locate rpmnew rpmsave" выдает список файлов,
> соответствующих только первому образцу. Раньше
> возвращались все, и rpmnew, и rpmsave.
>
> Чтение ман не просветило. Бага?
man locate
locate -A rpmnew rpmsave
--
Совместными усилиями postfix-2.1.5-alt1 всё-таки отправлен в
Сизиф. Никаких самоподрывающихся граблей, о которых предупреждал
Константин, не предусмотрено.
-- ldv in sisyphus@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] locate
2007-04-16 10:51 ` Pavlov Konstantin
@ 2007-04-16 12:24 ` A.Kitouwaykin
0 siblings, 0 replies; 3+ messages in thread
From: A.Kitouwaykin @ 2007-04-16 12:24 UTC (permalink / raw)
To: sisyphus
On Mon, 16 Apr 2007 14:51:40 +0400
Pavlov Konstantin wrote:
> On Mon, Apr 16, 2007 at 10:51:33AM +0400, A.Kitouwaykin wrote:
> > Добрый день.
> >
> > С переездом в Сизиф заметил такую вещь:
> >
> > команда "locate rpmnew rpmsave" выдает список файлов,
> > соответствующих только первому образцу. Раньше
> > возвращались все, и rpmnew, и rpmsave.
> >
> > Чтение ман не просветило. Бага?
>
> man locate
>
> locate -A rpmnew rpmsave
>
-A, --all
Print only names which match all non-option arguments,
not those matching one or more non-option arguments.
Моя вольная трактовка:
"Печатать только имена, которые соответствуют _всем_
аргументам-не-опциям (образцам), а не те, которые
соответствуют _хотя бы одному из_ образцов"
Жесткая трактовка locate:
[cetus@cet doc]$ locate -A rpmnew rpmsave
[cetus@cet doc]$ locate rpmnew
/etc/postfix/aliases.rpmnew
/usr/lib/gconv/gconv-modules.cache.rpmnew
/usr/lib/mozilla/chrome/installed-chrome.txt.rpmnew
/var/lib/arpwatch/arp.dat.rpmnew
/var/lib/nfs/etab.rpmnew
/var/lib/nfs/rmtab.rpmnew
[cetus@cet doc]$ locate rpmsave
/etc/X11/kdm/backgroundrc.rpmsave
/etc/cups/classes.conf.rpmsave
/etc/freshclam.conf.rpmsave
/etc/httpd2/conf/httpd2.conf.rpmsave
/etc/sysconfig/mouse.rpmsave
/usr/lib/mozilla/chrome/chrome.rdf.rpmsave
/usr/share/fonts/default/TrueType-gost/fonts.cache-1.rpmsave
/usr/share/fonts/default/Type1-sharatype/fonts.cache-1.rpmsave
[cetus@cet doc]$
Раньше это все печаталось одной командой locate без всяких -A
и т.п..
Бага! - #11517
--
Китайкин Анатолий Константинович
ОАО "Радиоавионика", СПб
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-16 12:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 6:51 [sisyphus] locate A.Kitouwaykin
2007-04-16 10:51 ` Pavlov Konstantin
2007-04-16 12:24 ` A.Kitouwaykin
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git