RubyGems Navigation menu

benry-unixcmd 0.9.0

Unix commnads implementation, like `fileutils.rb`. Features compared to `fileutils.rb`: * supports file patterns (`*`, `.`, `{}`) directly. * provides `cp :r`, `mv :p`, `rm :rf`, ... instead of `cp_r`, `mv_p`, `rm_rf`, ... * prints command prompt `$ ` before command echoback. * provides `pushd` which is similar to `cd` but supports nested calls naturally. * implements `capture2`, `capture2e`, and `capture3` which calls `Popen3.capture2`, `Popen3.capture2`, and `Popen3.capture3` respectively. * supports `touch -r reffile`. * provides `sys` command which is similar to `sh` in Rake but different in details. * provides `zip` and `unzip` commands (requires `rubyzip` gem). * provides `store` command which copies files recursively into target directory, keeping file path. * provides `atomic_symlink!` command which switches symlink atomically. ``` cp Dir['*.rb'], 'tmpdir' ## fileutils.rb cp '*.rb', 'tmpdir' ## benry-unixcmd ``` Benry-unixcmd provides `cp_p` and `cp_pr` which are equivarent to `cp -p` and `cp -pr` respectively and not provided by `fileutiles.rb`.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.9.1 - October 29, 2023 (37 KB)
  2. 0.9.0 - September 14, 2021 (33 KB)

Development Dependencies (1):

oktest ~> 1

Owners:

Pushed by:

Authors:

  • kwatch

SHA 256 checksum:

6d84db5ac36bd4aed27ae346a34cdfcbaae93ef82b11a35b4bf943c3d4e11da8

Total downloads 2,093

For this version 1,812

License:

MIT

Required Ruby Version: >= 0

Links: