case passthru
Mike Frysinger
vapier at gentoo.org
Thu Feb 18 21:37:20 UTC 2016
On 18 Feb 2016 11:04, David Henderson wrote:
> Good morning everyone, I am working with a shell script (#!/bin/sh)
> that utilizes a case statement to implement updates:
>
> case "$(cat /tmp/md5.txt)" in
> '123456')
> ...implement updates for this particular version...
> ;;
> '234567')
> ...implement updates for this particular version...
> ;;
> esac
>
> Using this syntax, I would have to reboot several times in order for
> all consecutive patches to be implemented. In bash I can use ;&
> instead of ;; to allow for continuing from one match to all that
> follow, but I can't figure it out with the BB shell. I've tried
> omitting the ;; characters, but that doesn't work either. Any info
> would be appreciated!
as mentioned, this is a seldom used bash extension. we have added them
in the past behind config knobs when people felt up to the task. feel
free to log a bug at bugs.busybox.net, but most likely it'll need you
to actually write/submit the patch ;).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160218/297d5039/attachment.asc>
More information about the busybox
mailing list