w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Enclosing brackets when setting variables

Using parentheses you create an array:

$ a=(x:y:z v:w:x)
$ echo ${a[0]}
x:y:z
$ echo ${a[1]}
v:w:x

In your case you created an array with one element (the whole path). This is then not interpreted anymore as the path to search for executables. This PATH has to be a string of directories separated by colons, not an array.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.