Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
New to zsh: zle, regular expressions conditionals, printf, history across shells (Mac OS X, zsh-4.2.7)
- X-seq: zsh-users 13536
- From: "Webb Sprague" <webb.sprague@xxxxxxxxx>
- Subject: New to zsh: zle, regular expressions conditionals, printf, history across shells (Mac OS X, zsh-4.2.7)
- Date: Fri, 5 Dec 2008 09:45:28 -0800
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:subject :cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=3uQ96fQXjf7sgHc1ZBF8B+5ZYdJLWshuoFLZAjfpYus=; b=s7PdDbGm17lIUwCIM41MQ8ntJzOUmPNicISi6Uw2d6GDaHWFBGX6IjeP8YQThYoJB3 llkHO4q4k9NqoUMtR2g2al/USmd/zyypzlSjjhm+5o/Y9S9MiIxTuUisXZEPcP8Sxae5 N5bR5yKF8Op1nCH7rBqUun52UT3CgZq8IP+h8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=pixsM4O9nVIm65Ml+ZiGspYFnpthmZyBgEkjbaP62LanYzDXKsbRtuwFGL4AVSGf/c Ov1mmHeDFpwBXCTXXcMXbC4b+MTK4LjZMoIvRVyOjmqZS0pC3BWyKgwFI/Ld9zSVIs83 yLa5dx8fxA+Um3snCJmNgbJyQvOnbIPu7W+BI=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Just discovered zsh! Awesome!
Here is are the first of many silly questions:
1. Is there a place where I can read some zle examples? I want to
try to push some edits onto the buffer stack, but I can't figure out
how... if I run % zle at the command line, I get a return code of 1
(bad, I think). Also, if I run setopt, I get
(0) ~ [0]% setopt
<197>
autocd
extendedglob
interactive
monitor
shinstdin
zle
2. Is there a way to test regular expressions in [[ ]]? Bash
introduced a "=~" notation recently, and I was wondering if there is
an equivalent thing. Maybe globbing is as powerful as RE's, but I
would still like to be able to do [[ $x =~ '^header: ' ]] or some
such.
3. I can't figure out printf (or 'print -f'). If I type % printf
"foobar" without any newline, the output disappears. If I type %
printf 'foo: %s\n' bar, I get "[m' bar:~foo: bar" -- I don't
understand why the special characters, nor where to look to find out
about them.
4. Finally, is there a way to share my history across open shells?
Thanks to the list, in advance, for your patience. Looking forward to
playing with zsh!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author