You are not logged in.
I have wrote a command, that works in bash, but won't in fish.
var=$(dmenu_path | dmenu); exec $varHow to rewrite it to fish shell?
Offline
Subshells in fish are started with just brackets, without the $, also, you set variables with the set command, instead of using =, it would become:
set var (dmenu_path | dmenu); exec $varOffline
I've allready try this.
~> set var (dmenu_path | dmenu); exec $var
fish: Variables may not be used as commands. Instead, define a function like 'function var; xterm $argv; end'. See the help section for the
function command by typing 'help function'.
set var (dmenu_path | dmenu); exec $var
^Offline
Hm, if you can't pass variables to exec, that pretty much defeats trying to do this, maybe report this as a bug to fish ?
Offline