expect snippet for shell