← Back to team overview

touch-packages team mailing list archive

[Bug 1399087] [NEW] printf %s vs. %b in Dash vs. Bash

 

Public bug reported:

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/

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1399087

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

Status in bash package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1399087/+subscriptions


Follow ups

References