0

I've written below code in /home/user_name/.bashrc

function input(){
    words="$1"
    echo $words
}

As I run input apple , the output is apple

As I run input "apple banana" , the output is apple banana

As I run input apple banana , the output is apple

I want to achieve the second output without using double quotations to enclose the input.

Any good way exists?

0 Answers0