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

Re: Trying to reverse a word.



On 20/10/2007, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Oct 20,  5:22am, Mikael Magnusson wrote:
> } Subject: Re: Trying to reverse a word.
> }
> } ${(j::)${(#)${(@Oa)${(s:-:):-41-45-58}}}}
> } (why does that break in double quotes? heh).
>
> Same reason ... you have one more ${...} than necessary.  Either remove
> it, or give it an (@) as well.
> ${(j::)${(@#)${(@Oa)${(s:-:):-41-45-58}}}}
> ${(j::)${(#@Oa)${(s:-:):-41-45-58}}}

Ach, I could have sworn I tried putting a @ in both but apparently
not. I'm starting to see how it works now though, thanks again.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author