Dash deliberately does not support arrays, so this is not a bug in dash.

I suggest changing the #!/bin/sh line at the start of the script to
#!/bin/bash. (Note that bash enters posix mode when it is called as
'sh', so it may be a good idea to add (set -o posix) 2>/dev/null && set
-o posix to the beginning of the script as well.)

If you want to use dash, you have to change the read command to
something like read package_check file_name_installation
file_location_package file_name_package. You also have to change all the
[[ conditional commands ]] to [ builtins ], taking note that [ ] has
somewhat different syntax.

-- 
shell script error if "read -a" is used
https://bugs.launchpad.net/bugs/474638
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to