how to make command substitution in fish shell? -


in bash or zsh can write

clang++ main.cpp -g -o bin/main `pkg-config --cflags --libs opencv` 

how can translate fish shell?

fish uses parenthesis command substitutions.

clang++ main.cpp -g -o bin/main (pkg-config --cflags --libs opencv) 

note parenthesis nest nicely, unlike backticks!


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

java - Unable to make sub reports with Jasper -

Integrity error when loading fixtures for Selenium testing in Django -