msadra
msadra

Reputation: 75

bash: ./test.sh./folder: No such file or directory

I am trying to read path from input but it gives error that there is no such a directory or file. input is ./test.sh./path ...

#!/bin/bash
var=$0
var1=$1
echo $var
echo $var1

Upvotes: 1

Views: 499

Answers (1)

Matthias
Matthias

Reputation: 7521

You are missing a whitespace between filename and argument.

./test.sh ./path

Upvotes: 2

Related Questions