[Bug 435336] Re: zsh interpret some %[a-z] in command line

kk_hephot 435336 at bugs.launchpad.net
Sat Jun 22 13:32:45 UTC 2013


According to the post here:
<https://bbs.archlinux.org/viewtopic.php?id=107834> you simply need to
amend $1 to ${~1:gs/%/%%}. That works for me.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zsh in Ubuntu.
https://bugs.launchpad.net/bugs/435336

Title:
  zsh interpret some %[a-z] in command line

Status in “zsh” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: zsh

  On command line, zsh interprets some %<letter> without possibility to escape it.
  It is especially a problem with date which uses % in its format.

  zsh /tmp$ date "+%d/%m %kh%M"
  ]0;date "+/tmp/ubuntu hubuntu"23/09 17h15

  bash /tmp$ date "+%d/%m %kh%M"
  23/09 17h15

  This bug only appears on command line, not in script or when you pipe commands
  zsh /tmp$ date "+%d/%m %kh%M" | less
  will show the good result in less.

  zsh 4.3.9-4ubuntu1
  bash 3.2-5ubuntu1
  coreutils 6.10-6ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/435336/+subscriptions




More information about the foundations-bugs mailing list