I'm currently adding packages to my slackware install cd's and I've finally come to a point where I do need to write a doinst.sh script to sort a few things out after the installation..
I need the packages to install and word inside the slackware installer.. so I suppose they should be ash-compatible.
I've seen a few scripts inside packages such as:
( cd /path/to/program; ln -s link sourcefile )
( cd /path/to/program; ln -s link2 sourcefile2 )
Now.. that hardly look like my average bash script..
Is it not possible for me to just omit parenthesises and handle the same action like so:
ln -s link sourcefile
ln -s link2 sourcefile2
And can't I just use if-blocks, for-loops and so on like I usually do with bash scripts ?
The reason I ask is because the tutorial on linuxpackages.net show regular sh syntax but the scripts I've seen in doinst.sh files so far show the other syntax...