[Nix-dev] NixOps failes to deploy: bash: Argument list too long
Profpatsch
mail at profpatsch.de
Fri Apr 14 22:00:07 CEST 2017
On 17-04-14 02:26pm, 4levels wrote:
> I think this is the generatd file causing the issue:
> /nix/store/wz9mvb6x082h4mvww1gsf0x0l9fq8p7z-nixos-system-secure-16.09pre-git.drv
> It looks like it's a single line of code, spanning 207073 characters, which
> is pbbly more than the allowed argument length for bash.
>
> Are there any guidelines to avoid running into this argument list error?
Depends on your bash use-case.
Lots of programs support file-input.
xargs may be a good candidate.
If you don’t want it sequential, GNU parallel.
Or just a plain old bash for; do; done loop.
--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
More information about the nix-dev
mailing list