BTS

Issue799

Title [grml-zsh-config] strange output when using %s
Priority bug Status resolved
Superseder Nosy List dejot, ft
Assigned To Topics

Created on 2010-01-12.08:55:46 by dejot, last changed 2010-02-28.01:45:03 by mika.

Messages
msg3087 (view) Author: mika Date: 2010-02-28.01:45:03
Fixed with upload of grml-etc-core 0.3.79. Thanks to all contributors.

thx && regards,
-mika-
msg2889 (view) Author: mru Date: 2010-02-09.07:17:23
Ok, its fixed in git now. Thanks to Frank for helping fixing this bug.
msg2886 (view) Author: mru Date: 2010-02-08.01:48:24
I am sorry, it is not abount printf format sequences but %s is a prompt escape.

So its about prompt escapes, like %b, %E, %U
msg2885 (view) Author: mru Date: 2010-02-08.00:56:17
The problem is within the preexec function, currently we are using
print -Pn "\e]0;%n@%m: $1\a" to change the title to the current command.

The problem is now, if $1 contains a printf format sequence like for example %s
the next argument will be formated accordingly to the specified format sequence.
msg2829 (view) Author: dejot Date: 2010-01-12.08:55:44
Using the grml-zsh-config in archlinux, I get strange output, whenever trying to
use %s in any command, eg.:
dejot@mobile ~ % echo %s
27m%s
dejot@mobile ~ % mocp -Q "%state"
27mtate"PLAY

setting NOPRECMD=1 (aka unfunction precmd and preexec) solves the issue.
History
Date User Action Args
2010-02-28 01:45:03mikasetstatus: fixed-in-git -> resolved
messages: + msg3087
2010-02-09 07:17:25mrusetstatus: chatting -> fixed-in-git
messages: + msg2889
2010-02-08 01:48:24mrusetmessages: + msg2886
2010-02-08 00:56:18mrusetstatus: unread -> chatting
nosy: + ft
messages: + msg2885
2010-01-12 08:55:46dejotcreate