Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Porting an alias from bash to zsh fails.



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