Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ~ substitution
- X-seq: zsh-users 15698
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: sergio <mailbox@xxxxxxxxxxxxx>
- Subject: Re: ~ substitution
- Date: Sat, 8 Jan 2011 11:42:41 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=G1fWG7qRkBonT6hMQWu/B0kyllEVrAbA1OVB3SkuzL8=; b=Ea7cJ1hGqz1QBVOMjOnsEwzTlk9ZwRPaOLmip2rgdw2UnK+GKIK5JmoqtRnIseEwAY nT8y+uHD0T/XnEP/YEwngP2bUC2yqwpmhXwRlDYDFwZZ6yD62fuz5Lczen2zf7aH28y0 d6RaainMv5ExjU2BEVr0szWlAf790kjtEgjzs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=yGw09yc/Pv88bo4Zk2b4mgF7hQdRMgptV5fZfdHZ4moZ4faE+khFO+CzqfuDoupX8l Ynd++rcIX4LZZohMmvWNggJ5JeKe9ADiDblugd56LyOOTHuP4lHy5UBQg35qtA0fdTKx ZTNmVGwvgWyWutxzh9tEnyyHFjIJ3YTbjZRXQ=
- In-reply-to: <4D28316E.7060106@xxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4D28316E.7060106@xxxxxxxxxxxxx>
On 8 January 2011 10:42, sergio <mailbox@xxxxxxxxxxxxx> wrote:
> Hello.
>
> Is it possible, to control ~ substitution?
> When I type 'echo ~' I get '/home/sergio' --- all right.
> When I type 'echo a~b' I get 'a~b' --- all right.
> Also sh and bash do the same.
>
> But when I type 'echo h=~' (or h=~sergio, or h=~/some/path) I get 'h=~'.
> sh does the same, and bash will out 'h=/home/sergio'.
>
> How to control this? Why this may be bad? May be this is a bug?
try setopt magicequalsubst
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author