During FiSH (Friendly Interactive Shell), I can start the process in the background ( something &). However, if I try to get the process ID of the process ( PID=$!), I get an error message from the fish:
fish: Unknown command "PID=$!". Did you mean "set PID $!"? For information on assigning values to variables, see the
help section on the set command by typing "help set".
PID=$!: command not found
How can I get the PID of the background process?
source
share