No need to be bash-specific
Bug #188070 reported by
Sergey Romanov
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
showfsck (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
The only reason showfsck uses #!/bin/bash instead of #!/bin/sh is arithmetic evaluation.
The line NB=$(($MMC - $MC + 1)) in /usr/sbin/showfsck can be changed to NB=$(expr $MMC - $MC + 1) to make the script shell-agnostic. /usr/bin/expr is in coreutils package, which has priority 'required' both in Ubuntu and Debian.
Related branches
Changed in showfsck: | |
assignee: | nobody → bobbo |
status: | New → Confirmed |
Changed in showfsck: | |
assignee: | nobody → blueyed |
status: | Confirmed → In Progress |
To post a comment you must log in.
Debdiff for this. Also fixed some grammar in the error message.