Question from the Bash - Fundamentals test

Write a bash function that takes 3 parameters and prints the first and last one.

Hard
#/bin/bash

function myFunction
{
echo $1
shift 1
echo $2
}
myFunction $1 $2 $3

What is the result returned when passing '1' '2' '3' as a parameter?

Author: titouan lecampStatus: PublishedQuestion passed 47 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!