Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shar: support directory args from find #304

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

mknos
Copy link
Contributor

@mknos mknos commented Oct 27, 2023

  • DragonFly, FreeBSD, NetBSD and OpenBSD manual pages share the example of using the find command to provide the arguments to shar
  • The output of find lists a directory before the files it contains
  • Add support for this usage by writing mkdir command on output if an argument is a directory
  • mkdir still runs for the "." directory in the following example but this is consistent with the OpenBSD version
  • Print directory name with "/" suffix when extracting
  • Update POD

perl ~/ppt/shar $(find . -print) > ~/new.shar

cd; sh new.shar
x - ./
x - ./b/
x - ./b/false
x - ./apply

* DragonFly, FreeBSD, NetBSD and OpenBSD manual pages share the example of using the
  find command to provide the arguments to shar
* The output of find lists a directory before the files it contains
* Add support for this usage by writing mkdir command on output if an argument is a directory
* mkdir still runs for . directory in the following example but this is consistent with OpenBSD version
* Print directory name with "/" suffix when extracting
* Update POD

perl ~/ppt/shar $(find . -print) > ~/new.shar

cd; sh new.shar
x - ./
x - ./b/
x - ./b/false
x - ./apply
@github-actions github-actions bot added Type: enhancement improve a feature that already exists Priority: low get to this whenever Program: shar The shar program labels Oct 27, 2023
@briandfoy briandfoy self-assigned this Oct 31, 2023
@briandfoy briandfoy merged commit 9347115 into briandfoy:master Oct 31, 2023
2 checks passed
@briandfoy briandfoy temporarily deployed to merge October 31, 2023 16:13 — with GitHub Actions Inactive
@briandfoy briandfoy temporarily deployed to merge October 31, 2023 16:16 — with GitHub Actions Inactive
@briandfoy briandfoy added Status: accepted The fix is accepted and removed Priority: low get to this whenever labels Oct 31, 2023
@briandfoy briandfoy added Status: released there is a new release with this fix and removed Status: accepted The fix is accepted labels Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Program: shar The shar program Status: released there is a new release with this fix Type: enhancement improve a feature that already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants