printf %s vs. %b in Dash vs. Bash

Bug #1399087 reported by jhansonxi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

Xubuntu 14.04 x86_64

Bash (4.3-7ubuntu1.5):

printf "%.s#\n" a
#
printf "%.b#\n" a
a#

Dash (0.5.7-4ubuntu1):

printf "%.s#\n" a
#
printf "%.b#\n" a
#

Esoteric but it was recommended that I report it as a bug under the assumption the design intent is for %b and %s to have the same behavior. Bug was confirmed in upstream development branch: http://www.reddit.com/r/bash/comments/2o8h6f/bug_printf_s_vs_b_in_dash_vs_bash/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.