greymd / tmux-xpanes

Awesome tmux-based terminal divider
MIT License
1.96k stars 61 forks source link

-n option's behavior is different between Ubuntu and Alpine #146

Open greymd opened 4 years ago

greymd commented 4 years ago

Command

xpanes -c 'echo {}' -n 2 2 '' 4 '' 6 8 10

Result (Ubuntu)

Screenshot 2020-05-03 at 21 09 09

Result(Alpine)

Screenshot 2020-05-03 at 21 08 50

Reason

Caused by difference of xargs since xpns_set_args_per_pane function depends on the xargs.

Screenshot 2020-05-03 at 20 56 57

Screenshot 2020-05-03 at 20 56 35

greymd commented 4 years ago

Fixed in v4.1.2

$ xpanes -c 'echo {}' -n 2 2 '' 4 '' 6 8 10

=> works perfectly

But still it does not work in case of pipe mode.

$ echo "2 2 '' 4 '' 6 8 10" | xpanes -n 2

=> does not work.

Keep this issue open since this is future work.