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

Commits on Oct 27, 2023

  1. shar: support directory args from find

    * 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
    mknos authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    2b63a8d View commit details
    Browse the repository at this point in the history