What is the portable (POSIX) way to achieve process substitution?
Some shells, like bash, support Process Substitution which is a way to present process output as a file, like this:
Some shells, like bash, support Process Substitution which is a way to present process output as a file, like this:
I have the following code that’s source-d by my .shellrc PATH="${PATH}:${HOME}/perl5/bin" PATH="${PATH}:${HOME}/.bin" export PATH but if I make changes to other code and then source this file, my path continues to get longer and longer with each source, each time appending these when they’re already there. What can I do to prevent this? Answers: Thank … Read more
What are the differences between POSIX, the Single UNIX Specification, and the Open Group Base Specifications? I think their purpose is for determining if an OS is Unix?
Just hit this problem, and learned a lot from the chosen answer: Create random data with dd and get “partial read warning”. Is the data after the warning now really random?
From POSIX 7:
Is there any standard that covers the portability of running a command after variable assignment on the same line?
In most POSIX compliant shell like bash. ksh, dash, mksh, pdksh, when variable assignment occur, field splitting and filename expansion (and brace expansion if the shell supports) are not performed in RHS of assignment:
How can I check if mv is atomic on my fs (ext4)?
Can someone put these tools in order of portability? Which of these is certain to be found on even the most minimal *nix systems? Is any of them 100% sure to be present? My guess is that the order is the following: