I'm in a busybox environment which only has sh and ash available.
Now I'm doing a script in which I need to pass all but the last param to ln.
So far it looks like this:
#!/bin/ash
TARGET="/some/path/"
for last; do true; done
ln $@ $TARGET$last
Obviously now I pass the last param twice, first unmodified then modified with $TARGET in front of it.
How can I get rid of the last param in $@?