shellwords-crystal v0.1.0

This module manipulates strings according to the word parsing rules of the UNIX Bourne shell

Shellwords

Build Status Docs GitHub release GitHub stars

This module manipulates strings according to the word parsing rules of the UNIX Bourne shell. Fork of the Ruby shellwords gem.

The shellwords() function was originally a port of shellwords.pl, but modified to conform to the Shell & Utilities volume of the IEEE Std 1003.1-2008, 2016 Edition [1].

[1] IEEE Std 1003.1-2008, 2016 Edition, the Shell & Utilities volume

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  shellwords:
    github: szTheory/shellwords-crystal
  1. Run shards install

Usage

require 'shellwords'

argv = Shellwords.shellsplit('three blind "mice"')
argv #=> ["three", "blind", "mice"]

Development

After checking out the repo, install the shard dependencies. Then, run crystal spec to run the specs. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/szTheory/shellwords-crystal

Repository

shellwords-crystal

Owner
Statistic
  • 2
  • 0
  • 1
  • 1
  • 1
  • almost 4 years ago
  • February 4, 2021
License

Other

Links
Synced at

Thu, 07 Nov 2024 07:52:13 GMT

Languages