Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions library/shellwords/shellwords_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@
it "raises ArgumentError when single quoted strings are misquoted" do
lambda { shellwords("a 'b c d e") }.should raise_error(ArgumentError)
end

ruby_version_is '2.4' do
# https://bugs.ruby-lang.org/issues/10055
it "matches POSIX sh behavior for backslashes within double quoted strings" do
shellsplit('printf "%s\n"').should == ['printf', '%s\n']
end
end
end