[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alias Error
From: |
Paul Jarc |
Subject: |
Re: Alias Error |
Date: |
Sat, 13 Mar 2004 19:50:17 -0500 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
"xin wu" <wuxin@myself.com> wrote:
> $ alias vv="vim \"+call IMAP('NNO','\Note{<++>}<++>','tex')\"
> /tmp/Vim.tex"
Here, you used double quotes around the alias value.
> alias vv='vim "+call
> IMAP('\''NNO'\'','\''\Note{<++>}<++>'\'','\''tex'\'')" /tmp/Vim.tex'
But bash printed it using single quotes. So to represent a literal
single quote in the middle of that string, bash has to use a single
quote to end the quoted string, then use a backslash-escaped single
quote, and then begin a new single-quoted string.
> In fact, the output I expected was:
>
> $ alias
> alias vv='vim "+call IMAP('NNO','\Note{<++>}<++>','tex')" /tmp/Vim.tex'
That wouldn't mean what you think. The ' before NNO would end the
quoted string that starts after vv=. There would be no literal single
quote included in the alias value.
paul
- Alias Error, xin wu, 2004/03/13
- Re: Alias Error,
Paul Jarc <=