File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ without interfering with classloaders."
420
420
(let* ((script-names (map-values cider--enrich-classpath-script-names))
421
421
(temp-prefix cider--temp-name-prefix)
422
422
(any-name (rx-to-string
423
- `(or (: (or bos " /" ) (or ,@script-names ) (or eos space))
423
+ `(or (: (or bos " /" " \\ " ) (or ,@script-names ) (or eos space))
424
424
(: , temp-prefix (or ,@script-names ))))))
425
425
(string-match any-name cmd)))
426
426
Original file line number Diff line number Diff line change 115
115
:to-equal nil )))
116
116
(describe " for different path + script-name combinations"
117
117
:var* ((paths `(" /simple/path/"
118
- ,( shell-quote-argument " /tmp/path/ with spaces/" )
119
- ,( shell-quote-argument " /ssh:!slightly@cra --zy!path #enrich me/" ) ))
118
+ ," /tmp/path/ with spaces/"
119
+ ," /ssh:!slightly@cra --zy!path #enrich me/" ))
120
120
(simple-names (map-values cider--enrich-classpath-script-names))
121
121
(tmp-names (mapcar (lambda (s ) (cider--make-temp-name s)) simple-names))
122
122
(all-names (seq-concatenate 'list simple-names tmp-names)))
123
123
(cl-loop
124
124
for path in paths do
125
125
(cl-loop
126
126
for name in all-names do
127
- (describe (format " cider--enriched-cmd-p with script: %s " (concat path name))
128
- :var ((script (concat path name)))
127
+ (describe (format " cider--enriched-cmd-p with script: %s " (shell-quote-argument ( concat path name) ))
128
+ :var ((script (shell-quote-argument ( concat path name) )))
129
129
(it " is true in basic cases "
130
130
(expect (cider--enriched-cmd-p (concat " bash " script " /usr/bin/lein" ))
131
131
:to-be-truthy )
You can’t perform that action at this time.
0 commit comments