Consider the following:
$ a='friend'
$ b='printf "%s\n" "$a"'
$ eval "$b"
friend
 This should be completely safe. Let's however say that $b is the same but $a is unknown. WhatAre there any security implications are there then to eval "$b" and if so, what can I do to mitigate them?
 
                