Even shorter, using bash arrays:

```
read -r -a SRC <<< "%{sources}"
cp -a ${SRC[@]:1} .
```

Technically it'd be possible to add min and max parameters to the %sources and 
%patches macros similar to %autopatch, but the added complexity doesn't seem 
warranted here because there are already tools to achieve this using generally 
available tools.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2180#issuecomment-1782874698
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2180/1782874...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to