shell - Fish equivalent of bash $(command) notation -
i trying out fish shell instead of using bash. 1 type of notation i'm having trouble learning fish-equivalent notation $(command)
, similar how described in this sof post. how write using fish? keep in mind use backslash characters around command want evaluate, linked post , other posts discourage because old style of evaluating commands.
specifically, bash command want convert fish syntax (for initializing rbenv during startup of shell):
eval "$(rbenv init -)"
in fish, $ used variables. correct notation equivalent bash $(command) (command) in fish.
Comments
Post a Comment