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

Re: append to history entry?



On Dec 27,  3:16pm, Ray Andrews wrote:
}
} it would be nice to be able to occasionally have a string be just a 
} string be just a string in a C sort of way.

That's what $'...' does, but you can't ask for a C string and for
variable interpolation at the same time.  Well, you can, but it
doesn't really help. ;-)

Maybe this would be easier (in the "should have thought of this before"
category):

    print -s -f '%s' rap "$@" ";" ":" "$HOST"

(Note this doesn't work with -S, which currently is silently ignored if
the -f option is given, but as you already have all the words separated
here there's no reason to re-parse them.)



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