I’m piping output from one command into a second: mpc listall returns the following data (can output 1 or more lines): When piping it into the next command, it seems that my shell (Ash on BusyBox) converts the ´ into an asterisk, as I get the error Manually adding double quotes works! like this: So, I tried adding those by
Tag: ash
Difference on bash and ash parentheses
I was trying to use a diff command for comparing directory listings which works fine in bash: However, on the ash (embedded device where no other shell is available) I get Is there any difference regarding reading input operator < or parentheses ( )? Answer Don’t confuse the angle bracket in <( … ) with the one in redirections like
How to make a return from a child function cause a return to the parent function?
I have a parent function and child function: How to make the return 1 (of the child) cause a return in the parent and then avoid the execute the remaining child calls? without adding a check of the returned value after each child call like this Answer There is a solution other than set -e and || return It’s simple,
String usage with {} in bash
I have a kind of the following strings and I wan to call: in order to get “aaa.bbb.” for str1 and “aaa.” for str2 what should I use as expression inside {} Answer Use it like this: