Bad substitution in echo ${a:2:2} from a file
Bug #135863 reported by
Antonio Luiz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
When I define a variable a in terminal, such as
$ a=water;
I can use the following comand
$ echo ${a:2:2}
te
But When I execute these steps from a file, it returns
Syntax error: Bad substitution
This bug is simple, but I could not solve..........
Thanks and with best
Changed in dash: | |
assignee: | sourcercito → nobody |
status: | Incomplete → Invalid |
importance: | Undecided → Low |
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. I have classified this bug as a bug in dash