[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
1c1
< #! /bin/sh -e
---
> #! /bin/bash -e
100c100
< 	if [ $kernel_ver = ${kernel_ver/pa/} ]
---
> 	if [ $kernel_ver = `echo $kernel_ver | sed s/pa//` } ]

Reply to: