jamesob / desk

A lightweight workspace manager for the shell
MIT License
2.54k stars 111 forks source link

Make desk run work with an argument vector. #84

Closed groner closed 5 years ago

groner commented 5 years ago

This change adds a new argument vector form of the desk run command, allowing an existing command to be wrapped without requiring quoting/escaping of the command.

In this new form, the argument vector is executed without variable expansion by the shell. This could be supported using eval, but it would require some tradeoffs that aren't really worth it IMO (ssh does something like this, and it generally makes a mess of anything but the simplest of commands).

groner commented 5 years ago

This addresses #88.

jamesob commented 5 years ago

Looks good to me, thanks!