[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#325511: libc6: bashisms in /etc/init.d/glibc.sh script

Package: libc6
Version: 2.3.5-5
Severity: normal

on line 100, it errors out if /bin/sh isn't bash. changing hash bang to
'#!/bin/bash -e' "fixes" it.

/etc/init.d/glibc.sh start
/etc/init.d/glibc.sh: 100: Syntax error: Bad substitution

100:  if [ $kernel_ver = ${kernel_ver/pa/} ] 

i suspect something like

  if [ $kernel_ver = "${kernel_ver}/pa/" ]

is expected....

seems to work ok, with the hash bang set back to what it was ('/bin/sh -e').

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (1000, 'unstable'), (998, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12-pylon
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

-- no debconf information

Reply to: