Skip to content

Commit

Permalink
Wrap echo argument in double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio authored Jul 1, 2024
1 parent aebb464 commit 44084df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotfiles/irbrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def time(iterations: 1)
end

def copy
system "echo #{IRB.CurrentContext.last_value} | pbcopy"
system "echo \"#{IRB.CurrentContext.last_value}\" | pbcopy"
true
end

Expand Down

0 comments on commit 44084df

Please sign in to comment.