Windows Shell是否具有与Ruby Shellwords模块等效的功能? [英] Is there an equivalent to the Ruby Shellwords module for the Windows shell?

查看:58
本文介绍了Windows Shell是否具有与Ruby Shellwords模块等效的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Ruby中的数组构造Windows Shell命令行。如果我使用的是Bash,则可以使用标准的Shellwords模块。是否有与Windows shell等效的Shellwords,可以安全地将数组转换为命令行字符串?

I need to construct Windows shell commandlines from arrays in Ruby. If I were using Bash, I could use the standard Shellwords module. Is there an equivalent to Shellwords for the Windows shell, which can safely transform an array to a commandline string?

推荐答案

对我来说,不幸的是,实际上没有Windows与Shellwords类似。

It appears to me there is in fact no Windows analogue to Shellwords unfortunately.

这篇关于Windows Shell是否具有与Ruby Shellwords模块等效的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆