The bug is in your code. Instead of:
echo $line
... you must write:
echo "$line"
Lacking the double quotes here means that the result of expanding $line
then undergoes pathname expansion, which you don't want in this case.
In general you should always ensure that any $-expansion in a shell
script is surrounded by double quotes unless you have a specific reason
not to do so.
** Information type changed from Private Security to Public
** Project changed: launchpad => ubuntu
** Changed in: ubuntu
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1668237
Title:
Reading a file causes directory list output
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1668237/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs