ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] gear --hasher и параметры hsh
Date: Thu, 16 Nov 2006 15:17:38 +0300
Message-ID: <20061116121738.GE30667@localhost.localdomain> (raw)
In-Reply-To: <200611161326.41673.azol@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

On Thu, Nov 16, 2006 at 01:26:41PM +0200, Artem Zolochevskiy wrote:
> hi all
> 
> Отчего я не могу использовать ~ для указания месторасположения apt.conf ?
> $ gear --hasher -- hsh ~/HASHER/ --apt-conf=~/etc/apt.conf
> говорит 
> readlink: ~/etc/apt.conf: Нет такого файла или каталога
> hsh: --apt-config: ~/etc/apt.conf: file not available.
> 
> с полным путём всё ок.
> $ gear --hasher -- hsh ~/HASHER/ --apt-conf=/home/artem/etc/apt.conf 
> 
> Можно это как-то поправить? Уж шибко неудобно каждый раз полный путь давать.

У вас zsh?

$ echo a=~/
a=~/
$ setopt MAGIC_EQUAL_SUBST
$ echo a=~/               
a=/home/at/
$ 

Синтаксис zsh по умолчанию достаточно консервативен, он даже не делает
word splitting по умолчанию.  Вот некоторые опции, которые сделают zsh
"почти как bash":

# ${=foo}
setopt SH_WORD_SPLIT

# ${~foo}
setopt GLOB_SUBST

# export x=`echo hi there`
setopt KSH_TYPESET

# print foo=~/bar:~/rod
setopt MAGIC_EQUAL_SUBST

# print nosuchfile*
setopt NO_NOMATCH

# print [-
setopt NO_BAD_PATTERN

# print -n line
setopt NO_PROMPTCR

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2006-11-16 12:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 11:26 Artem Zolochevskiy
2006-11-16 11:36 ` Epiphanov Sergei
2006-11-16 13:02   ` Alexey Tourbin
2006-11-16 14:11     ` Artem Zolochevskiy
2006-11-16 12:14 ` Dmitry V. Levin
2006-11-16 12:26   ` Alexey Tourbin
2006-11-16 12:38     ` Dmitry V. Levin
2006-11-16 12:51       ` Alexey Tourbin
2006-11-16 12:53         ` Alexey Tourbin
2006-11-16 14:18   ` Artem Zolochevskiy
2006-11-16 12:17 ` Alexey Tourbin [this message]
2006-11-16 12:27   ` Andrei Bulava

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=20061116121738.GE30667@localhost.localdomain \
    --to=at@altlinux.ru \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

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

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


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