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

mv not found #46

Closed
Susensio opened this issue Nov 14, 2022 · 8 comments
Closed

mv not found #46

Susensio opened this issue Nov 14, 2022 · 8 comments

Comments

@Susensio
Copy link

I'm running tldr 0.9.2-2+b1 from debian testing repo, and today I found that "tldr page for command mv not found".
I updated the database but nothing changed.

@psibi
Copy link
Owner

psibi commented Nov 15, 2022

Are other commands working fine ? Because it does seem to be working for me:

❯ tldr mv
mv

Move or rename files and directories.
More information: https://www.gnu.org/software/coreutils/mv.

 - Move a file to an arbitrary location:
   mv source target
.....

@Susensio
Copy link
Author

Its not working. But the file exists. Can I debug this somehow?

susensio@nuc:~/.config/tldr$ fd mv
    common/aws-s3-mv.md
    common/convmv.md
    common/git-mv.md
    common/mmv.md
    common/mv.md
    common/mvn.md
    common/qmv.md
    common/semver.md
    common/zmv.md
susensio@nuc:~/.config/tldr$ tldr mmv
    mmv
    
    Move and rename files in bulk.
    More information: <https://manned.org/mmv.1>.
    
    - Rename all files with a certain extension to a different extension:
      mmv "*.old_extension" "#1.new_extension"
    
    - Copy `report6part4.txt` to `./french/rapport6partie4.txt` along with all similarly named files:
      mmv -c "report*part*.txt" "./french/rapport#1partie#2.txt"
    
    - Append all `.txt` files into one file:
      mmv -a "*.txt" "all.txt"
    
    - Convert dates in filenames from "M-D-Y" format to "D-M-Y" format:
      mmv "[0-1][0-9]-[0-3][0-9]-[0-9][0-9][0-9][0-9].txt" "#3#4-#1#2-#5#6#7#8.txt"

susensio@nuc:~/.config/tldr$ tldr mv
    tldr page for command mv not found
susensio@nuc:~/.config/tldr [1]$ bat common/mv.md 
      # mv
      
      > Move or rename files and directories.
      > More information: <https://www.gnu.org/software/coreutils/mv>.
      
      - Move a file to an arbitrary location:
      
      `mv {{source}} {{target}}`

      - Move files into another directory, keeping the filenames:
      
      `mv {{source1}} {{source2}} {{source3}} {{target_directory}}`
      
      - Do not prompt for confirmation before overwriting existing files:
      
      `mv -f {{source}} {{target}}`
      
      - Prompt for confirmation before overwriting existing files, regardless of file permissions:
      
      `mv -i {{source}} {{target}}`
      
      - Do not overwrite existing files at the target:
      
      `mv -n {{source}} {{target}}`
      
      - Move files in verbose mode, showing files after they are moved:
      
      `mv -v {{source}} {{target}}`

@psibi
Copy link
Owner

psibi commented Nov 15, 2022

Its not working. But the file exists. Can I debug this somehow?

Is it possible for you to build and compile the package locally ? If yes, then probably we can add some logging statements in the code and try things out.

@Susensio
Copy link
Author

I can do it if you tell me how to do it :)

I'm thinking there may be a packaging versioning problem. I've just found that "--auto-update-interval" is not working, and I think it should as I'm using 0.9.2-2.

@psibi
Copy link
Owner

psibi commented Nov 15, 2022

I can do it if you tell me how to do it :)

Sure. These are the steps:

  1. Clone this repo
  2. Install stack: https://docs.haskellstack.org/en/stable/#how-to-install-stack
  3. Go inside the repo and do stack build

Let me know if you want me to go into any of the step in more detail and I can guide you.

I'm thinking there may be a packaging versioning problem. I've just found that "--auto-update-interval" is not working, and I think it should as I'm using 0.9.2-2.

Hmm, that's strange too.

@Susensio
Copy link
Author

Susensio commented Nov 15, 2022

Done. Compiled version works flawlessly. It must be some packaging problem in the oficial debian repo. Look at these outputs:

apt installed:

susensio@nuc:~/Projects/sandbox/tldr-hs/.stack-work/install/x86_64-linux-tinfo6/3885310c5e631f663e7c5936abf6a22b0e5c13850d32e97649a53c50328f29e9/9.0.2/bin (master)$ tldr -h
USAGE: tldr [options] <command>

[options]
    -l, --list:       show all available pages
    -p, --platform:   show page from specific platform rather than autodetecting
    -u, -c, --update: update, force retrieving latest copies of locally cached files
    -h, -?, --help:   this help overview

<command>
    Show examples for this command

The client caches a copy of all pages and the index locally under
/home/susensio/.config/tldr . By default, the cached copies will expire in 14 days.

compiled:

susensio@nuc:~/Projects/sandbox/tldr-hs/.stack-work/install/x86_64-linux-tinfo6/3885310c5e631f663e7c5936abf6a22b0e5c13850d32e97649a53c50328f29e9/9.0.2/bin (master)$ ./tldr -h
tldr - Simplified and community-driven man pages

Usage: tldr [-v|--version] 
            ((-u|--update) | [-p|--platform PLATFORM] [-L|--language LOCALE]
              COMMAND |
              (-a|--about)) [--auto-update-interval DAYS] [--color | --no-color]
  tldr Client program

Available options:
  -h,--help                Show this help text
  -v,--version             Show version
  -u,--update              Update offline cache of tldr pages
  -p,--platform PLATFORM   Prioritize a specific platform while searching. Valid
                           values include linux, osx, windows, sunos
  -L,--language LOCALE     Preferred language for the page returned
  COMMAND                  name of the command
  -a,--about               About this program
  --auto-update-interval DAYS
                           Perform an automatic update if the cache is older
                           than DAYS
  --color                  Force colored output, overriding the NO_COLOR
                           environment variable
  --no-color               Disable colored output

apt installed tldr seems outdated, but the info seems up to date

susensio@nuc:~/Projects/sandbox/tldr-hs/.stack-work/install/x86_64-linux-tinfo6/3885310c5e631f663e7c5936abf6a22b0e5c13850d32e97649a53c50328f29e9/9.0.2/bin (master)$ apt info tldr
Package: tldr
Version: 0.9.2-2+b1
Priority: optional
Section: doc
Source: haskell-tldr (0.9.2-2)
Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Installed-Size: 12.9 MB
Depends: libc6 (>= 2.34), libcmark0.30.2 (>= 0.30.2), libffi8 (>= 3.4), libgmp10 (>= 2:6.2.1+dfsg1), zlib1g (>= 1:1.1.4), git
Conflicts: tldr-py (<< 0.7.0-2~)
Homepage: https://github.com/psibi/tldr-hs#readme
Download-Size: 2,151 kB
APT-Manual-Installed: yes
APT-Sources: http://deb.debian.org/debian testing/main amd64 Packages
Description: Haskell tldr client
 Haskell tldr client with support for updating and viewing tldr pages.
 .
 The TLDR pages are a community effort to simplify the beloved man
 pages with practical examples.  See https://tldr.sh/

@psibi
Copy link
Owner

psibi commented Nov 15, 2022

@Susensio Yeah, that looks like it. Good debugging and thanks for the confirmation!

What do you think about closing the issue since there is nothing that can be done here ?

@Susensio
Copy link
Author

Susensio commented Nov 15, 2022

I'll mark this as closed and talk to the package maintainers. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants