dunsmoreb/rvmsh — Issue #14: The program $app is not installed
Author: petervandenabeele
Created: 2012-01-01 10:21:41+00:00
State: open

bash is reading the $app in those lines literally without interpolation.

```bash
new@ASUS:~/github/dunsmoreb/rvmsh$ ./rvm -n
The program, "$app", is not installed.
The program, "$app", is not installed.
Please install the above packages and run rvmsh again.
new@ASUS:~/github/dunsmoreb/rvmsh$
```

A quick fix is below, but probably a nicer way to interpolate exists in bash.

```bash
new@ASUS:~/github/dunsmoreb/rvmsh$ git diff
diff --git a/rvm b/rvm
index 4577365..d71da39 100755
--- a/rvm
+++ b/rvm
@@ -55,7 +55,7 @@ for app in bash awk sed grep which ls cp tar curl gunzip bunzip2 git svn; do
if [ "$sudo" = "true" ]; then
sudo $installer install $app
else
- echo 'The program, "$app", is not installed.'
+ echo 'The program' $app 'is not installed.'
fi
fi
done
@@ -77,7 +77,7 @@ if [ "$?" = "0" ]; then
if [ "$sudo" = "true" ]; then
sudo $installer install $app
else
- echo 'The program, "$app", is not installed.'
+ echo 'The program' $app 'is not installed.'
fi
fi
done
new@ASUS:~/github/dunsmoreb/rvmsh$
```