1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash case "$1" in "vicuña@testserver") # Test one naked, one full. These exist in the static aliases file. echo pepe, joan@testserver ;; "ñandú@testserver") echo "| writemailto ../.data/pipe_alias_worked" ;; "roto@testserver") exit 1 ;; esac