Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Porting an alias from bash to zsh fails.
- X-seq: zsh-users 8096
- From: "s. keeling" <keeling@xxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Porting an alias from bash to zsh fails.
- Date: Sat, 23 Oct 2004 17:14:42 -0600
- In-reply-to: <m3mzyd6pzp.fsf@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041023215252.GA24164@xxxxxxxxxxxxxxxxxxx> <m3mzyd6pzp.fsf@xxxxxxxxxx>
- Sender: "s. keeling" <keeling@xxxxxxxxxxx>
Incoming from Lloyd Zusman:
> "s. keeling" <keeling@xxxxxxxxxxx> writes:
> >
> > RXVTNEWSFONT='-*-neep alt-medium-*-normal-*-*-100-75-75-c-*-iso8859-1'
> >
> > alias dfn="rxvt +sb -fn $RXVTNEWSFONT -geometry 128x51+69+42 \
> > -e nice /usr/bin/slrn -f /home/keeling/.jnewsrc-dfn \
> > -h news.individual.net"
> [snip]
> To protect this from occurring, put single quotes around that variable
> in the alias definition:
>
> alias dfn="rxvt +sb -fn '$RXVTNEWSFONT' -geometry 128x51+69+42 \
> -e nice /usr/bin/slrn -f /home/keeling/.jnewsrc-dfn \
> -h news.individual.net"
> [snip]
>
> This works because the single quotes are treated as normal (non-quoting)
.....................^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> characters when inside of double quotes; therefore, the RXVTNEWSFONT
..^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That was a surprise to me. Thanks. Your excellent explanation has
solved it for me. Much appreciated.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- -
Messages sorted by:
Reverse Date,
Date,
Thread,
Author