Closed AdamBromiley closed 1 year ago
Fix for Issue #136, where Netkit would falsely report a tmux session as existing if its session name was a prefix of an existing session name. I.e.:
tmux -L netkit new-session -s "foobar" tmux -L netkit has-session -t "foo" # returns true, Netkit fails creating a tmux session for "foo"
This PR uses tmux's exact match operator:
tmux -L netkit new-session -s "foobar" tmux -L netkit has-session -t "=foo" # returns false, Netkit succeeds creating a tmux session for "foo" tmux -L netkit has-session -t "=foobar" # returns true, as expected
This is documented behaviour of tmux.
Fix for Issue #136, where Netkit would falsely report a tmux session as existing if its session name was a prefix of an existing session name. I.e.:
This PR uses tmux's exact match operator:
This is documented behaviour of tmux.