Set expand_alias when shopt not available?
问题 I'm trying to use an alias in a shell script I'm writing, but it is not working. The alias: alias ts="awk '{ print strftime(\"[%Y-%m-%d %H:%M:%S]\"), \$0 }'" When I run the script, I get the following error: ./copyTask.sh: ts: not found Sooping around on the internet, it seems that I need to enable the expand_aliases shell option, but I don't have shopt installed... Is there any way I can enable alias expansion without using shopt or creating another rootfs image? I'm using the ash shell. And