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

Re: string overwrites string when echoed



Peter Stephenson wrote:

> %% is a standard pattern match operator
> (works in most shells) that removes the
> longest possible match of the following
> pattern. % is similar but removes the
> shortest possible match: I used %% because
> they do the same thing in this case (it's
> a single fixed character) and I happen to
> know the longest match is generally more
> efficient to evaluate. This is documented in
> the PARAMETER EXPANSION section of the
> zshexpn manual.
>
> $'...' is an increasingly common form of
> quoting that allows escape sequences like the
> print builtin, so $'\r' exands to a carriage
> return. This is documented in the section
> QUOTING in the zshmisc manual page (except it
> doesn't say much more than what I did before
> you have to go away and read the entry for
> the print builtin).

Okay cool, thanks a lot.

-- 
underground experts united
http://user.it.uu.se/~embe8573



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