#!/bin/bash - #set -x i=0 while [ $# -gt 0 ]; do case "$1" in -machine) echo "Morphing the -machine option" shift 2;; -cpu) echo "Not using -cpu" shift 2;; *) args[i]="$1" (( i++ )) shift ;; esac done set -x exec qemu-system-x86_64 -enable-kvm -machine pc-i440fx-2.1,accel=kvm:tcg,dump-guest-core=off "${args[@]}"