zsh-users
 help / color / mirror / code / Atom feed
From: Simon Hausmann <hausmann@kde.org>
To: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
Cc: zsh-users@sunsite.dk
Subject: Re: quick question about '%s' expansion
Date: Sun, 9 Sep 2001 10:17:39 +0200	[thread overview]
Message-ID: <20010909101739.A15515@master.kde.org> (raw)
In-Reply-To: <3B9A9379.6000202@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Sun, Sep 09, 2001 at 01:54:01AM +0400

On Sun, Sep 09, 2001 at 01:54:01AM +0400, Borsenkow Andrej wrote:
> Simon Hausmann wrote:
> > 	date +%s
> > 
> > results in the following output
> > 
> > 	" date "+" date "+"999985277
> > 
> 
> {pts/2}% date +%s
> 999985938
> {pts/2}% echo $ZSH_VERSION
> 4.0.2
> 
> Check with zsh -f. Is it possible that date is aliased/defined as function?

Ah, yes, with -f it works. Silly me, I had a preexec which looked like

	preexec () {print -Pn "\e]0;%n@%m: $*\a"}

and apparently the %s got caught by the prompt expansion, causing output
beyond the xterm escape sequence. I splitted it up in two print's 
(one with -P and one without) and now it works :)


Simon


  reply	other threads:[~2001-09-09  8:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-08 21:45 Simon Hausmann
2001-09-08 21:54 ` Borsenkow Andrej
2001-09-09  8:17   ` Simon Hausmann [this message]
2001-09-09 16:00     ` Bart Schaefer
2001-09-09 16:34       ` Simon Hausmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010909101739.A15515@master.kde.org \
    --to=hausmann@kde.org \
    --cc=Andrej.Borsenkow@mow.siemens.ru \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).