File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,11 @@ Usage:
30
30
Activate a desk. Extra arguments are passed onto shell. If called with
31
31
no arguments, look for a Deskfile in the current directory. If not a
32
32
recognized desk, try as a path to directory containing a Deskfile.
33
- $PROGRAM run <desk-name> <cmd>
34
- Run a command within a desk's environment then exit. Think '\$ SHELL -c'.
33
+ $PROGRAM run <desk-name> '<cmd>'
34
+ $PROGRAM run <desk-name> <cmd> <arg>...
35
+ Run a command within a desk's environment then exit. In the first form
36
+ shell expansion is performed. In the second form, the argument vector
37
+ is executed as is.
35
38
$PROGRAM edit [desk-name]
36
39
Edit (or create) a deskfile with the name specified, otherwise
37
40
edit the active deskfile.
@@ -138,7 +141,11 @@ cmd_go() {
138
141
cmd_run () {
139
142
local TODESK=" $1 "
140
143
shift ;
141
- cmd_go " $TODESK " -ic " $@ "
144
+ if [ $# -eq 1 ]; then
145
+ cmd_go " $TODESK " -ic " $1 "
146
+ else
147
+ cmd_go " $TODESK " -ic ' "$@"' -- " $@ "
148
+ fi
142
149
}
143
150
144
151
You can’t perform that action at this time.
0 commit comments