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

Bug#325504: bashisms

This problem is caused by the bashism ${var/expr/string}. Two patches, both of which address this problem included. One switches the interpreter to bash, the other replaces the bashism with a sedism. The sed one is tested and works, the other one is not tested.

Michael Spang
< #! /bin/sh -e
> #! /bin/bash -e
< 	if [ $kernel_ver = ${kernel_ver/pa/} ]
> 	if [ $kernel_ver = `echo $kernel_ver | sed s/pa//` } ]

Reply to: