summaryrefslogtreecommitdiffstats
path: root/pts
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-22 09:19:33 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-22 09:19:33 -0400
commitf57fa1e2f7e81ac0ac630cd864d156720f02d3e3 (patch)
treebb2beefe87535cf3da0a7fe3c8003936684c0b13 /pts
parent5920121e0ad8de38fac51e8e075952932cea2630 (diff)
downloadphoronix-test-suite-upstream-f57fa1e2f7e81ac0ac630cd864d156720f02d3e3.tar.gz
phoronix-test-suite-upstream-f57fa1e2f7e81ac0ac630cd864d156720f02d3e3.tar.xz
phoronix-test-suite-upstream-f57fa1e2f7e81ac0ac630cd864d156720f02d3e3.zip
pts: This fixes a bug where installing multiple distro packages (such as
SDL-devel and SDL_gfx-devel) results in a command that only installs the first one in the list (eg: su root -c 'yum -y install SDL-devel' SDL_gfx-devel - note the quotes). It happens like this because of the different way that * and @ are expanded when quoted. See the Special Parameters section of the Bash manpage for explanation. Note that this might break if any of the package names contain whitespaces (which really shouldn't happen).
Diffstat (limited to 'pts')
-rwxr-xr-xpts/distro-scripts/install-centos-packages.sh2
-rwxr-xr-xpts/distro-scripts/install-fedora-packages.sh2
-rwxr-xr-xpts/distro-scripts/install-gentoo-packages.sh2
-rwxr-xr-xpts/distro-scripts/install-mandrivalinux-packages.sh2
-rwxr-xr-xpts/distro-scripts/install-opensolaris-packages.sh2
-rwxr-xr-xpts/distro-scripts/install-opensuse-packages.sh2
-rwxr-xr-xpts/distro-scripts/install-ubuntu-packages.sh2
7 files changed, 7 insertions, 7 deletions
diff --git a/pts/distro-scripts/install-centos-packages.sh b/pts/distro-scripts/install-centos-packages.sh
index 457fa62..707958c 100755
--- a/pts/distro-scripts/install-centos-packages.sh
+++ b/pts/distro-scripts/install-centos-packages.sh
@@ -3,5 +3,5 @@
# CentOS package installation
echo "Please enter your root password below:" 1>&2
-su root -c "yum -y install $@"
+su root -c "yum -y install $*"
exit
diff --git a/pts/distro-scripts/install-fedora-packages.sh b/pts/distro-scripts/install-fedora-packages.sh
index 34daae4..f59820d 100755
--- a/pts/distro-scripts/install-fedora-packages.sh
+++ b/pts/distro-scripts/install-fedora-packages.sh
@@ -3,5 +3,5 @@
# Fedora package installation
echo "Please enter your root password below:" 1>&2
-su root -c "yum -y install $@"
+su root -c "yum -y install $*"
exit
diff --git a/pts/distro-scripts/install-gentoo-packages.sh b/pts/distro-scripts/install-gentoo-packages.sh
index 0031de7..a5f4e1c 100755
--- a/pts/distro-scripts/install-gentoo-packages.sh
+++ b/pts/distro-scripts/install-gentoo-packages.sh
@@ -3,5 +3,5 @@
# Gentoo package installation
echo "Please enter your root password below:" 1>&2
-su root -c "emerge -v $@"
+su root -c "emerge -v $*"
exit
diff --git a/pts/distro-scripts/install-mandrivalinux-packages.sh b/pts/distro-scripts/install-mandrivalinux-packages.sh
index b6106f5..c7b4d3e 100755
--- a/pts/distro-scripts/install-mandrivalinux-packages.sh
+++ b/pts/distro-scripts/install-mandrivalinux-packages.sh
@@ -3,5 +3,5 @@
# Mandriva package installation
echo "Please enter your root password below:" 1>&2
-su - root -c "urpmi --auto $@"
+su - root -c "urpmi --auto $*"
exit
diff --git a/pts/distro-scripts/install-opensolaris-packages.sh b/pts/distro-scripts/install-opensolaris-packages.sh
index b06a1dc..b6514d0 100755
--- a/pts/distro-scripts/install-opensolaris-packages.sh
+++ b/pts/distro-scripts/install-opensolaris-packages.sh
@@ -3,4 +3,4 @@
# OpenSolaris IPS Installer
echo "Please enter your root password below:" 1>&2
-su root -c "pkg install $@"
+su root -c "pkg install $*"
diff --git a/pts/distro-scripts/install-opensuse-packages.sh b/pts/distro-scripts/install-opensuse-packages.sh
index 59d552a..c2a7f03 100755
--- a/pts/distro-scripts/install-opensuse-packages.sh
+++ b/pts/distro-scripts/install-opensuse-packages.sh
@@ -3,5 +3,5 @@
# Mandriva package installation
echo "Please enter your root password below:" 1>&2
-su root -c "yast -i $@"
+su root -c "yast -i $*"
exit
diff --git a/pts/distro-scripts/install-ubuntu-packages.sh b/pts/distro-scripts/install-ubuntu-packages.sh
index d287615..e968252 100755
--- a/pts/distro-scripts/install-ubuntu-packages.sh
+++ b/pts/distro-scripts/install-ubuntu-packages.sh
@@ -18,5 +18,5 @@ fi
# if [ -x /usr/sbin/synaptic ] && [ ! -z "$DISPLAY" ]; then
# $ROOT "sh -c 'echo \"$@ install\" | /usr/sbin/synaptic --set-selections --non-interactive --hide-main-window'"
# else
- $ROOT "apt-get -y install $@"
+ $ROOT "apt-get -y install $*"
# fi