From: Led <ledest@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] anki
Date: Wed, 13 Jan 2010 00:22:25 +0200
Message-ID: <201001130022.25635.ledest@gmail.com> (raw)
In-Reply-To: <4B4CAB02.4090302@gmail.com>
On Tuesday, 12 January 2010 19:01:54 Andrew Clark wrote:
> On 12.01.2010 19:54, Michael Shigorin wrote:
> > Меняет и пишет в стек.
> > pushd /
> > popd
> >
> > сходит в корень и вернётся. В тривиальном случае достаточно cd -
> > (переключается между двумя последними каталогами).
>
> Выдержка из man bash:
> DIRSTACK
>
> Переменная-массив (см. раздел "Массивы" далее),
> в которой хранится текущее содержимое стека каталогов.
> Каталоги находятся в стеке в том же порядке, в котором
> выдаются встроенной командой dirs.
>
> Путем присваивания элементам этого массива можно
> изменять каталоги, уже находящиеся в стеке, но для
> добавления и удаления каталогов надо использовать
> встроенные команды pushd и popd.
> Присваивание значения этой переменной не меняет текущий каталог.
> Если переменная DIRSTACK удаляется с помощью unset, она
> теряет свои специальные свойства, даже если в дальнейшем
> переустанавливается.
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus
Не читайте по утрам советских газет^W^Wруских манов.
...the current working directory as set by cd, pushd, or popd, or inherited
by the shell at invocation...
.........
pushd [-n] [dir]
pushd [-n] [+n] [-n]
Adds a directory to the top of the directory stack, or rotates
the stack, making the new top of the stack the current working
directory.....
--
Led
prev parent reply other threads:[~2010-01-12 22:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 19:15 Andrew Clark
2010-01-11 20:53 ` Michael Shigorin
2010-01-11 20:59 ` Andrew Clark
2010-01-11 21:08 ` Led
2010-01-11 21:13 ` Andrew Clark
2010-01-11 21:18 ` Igor Zubkov
2010-01-11 21:24 ` Andrew Clark
2010-01-12 16:21 ` Andrew Clark
2010-01-12 16:54 ` Michael Shigorin
2010-01-12 17:01 ` Andrew Clark
2010-01-12 17:04 ` Michael Shigorin
2010-01-12 17:14 ` Andrew Clark
2010-01-12 22:22 ` Led [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=201001130022.25635.ledest@gmail.com \
--to=ledest@gmail.com \
--cc=sisyphus@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
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