bugGNU Stow - Bugs: bug #66851, Stow silently fails when stow...

 
 

bug #66851: Stow silently fails when stow directory path contains spaces

Submitter:  None
Submitted:  Wed 26 Feb 2025 01:34:00 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sun 09 Mar 2025 02:00:46 PM UTC, comment #2: 

What exactly do you mean by "silently fails" here?  In the debug output I see:

> --- Skipping .config as it already points to 07 dotfiles/fish/.config


so I'm not yet convinced there really is a bug here.  I'm not aware of anything in the code which would fail to deal with spaces correctly.  Please can you provide an exact sequence of commands (e.g. mkdir -p ... and touch ...) which reproduces the issue as a minimal test case?  It should include the setup of a test Stow directory and package containing spaces, not just the running of a single stow command.  I also need to know exactly how the observed behaviour differs from what you expect the behaviour to be.  Thanks!

Adam Spiers <aspiers>
Group administrator
Sun 02 Mar 2025 01:30:35 PM UTC, comment #1: 

I discovered that the .config directory with the fish config files was created under "~/00-09 System/.config".

jbd0
Wed 26 Feb 2025 01:34:00 PM UTC, original submission:  

Here is the debug output:


> stow --verbose=5 fish/

stow dir is /home/jason/00-09 System/07 dotfiles
stow dir path relative to target /home/jason/00-09 System is 07 dotfiles
cwd now /home/jason/00-09 System
cwd restored to /home/jason/00-09 System/07 dotfiles
cwd now /home/jason/00-09 System
Planning stow of package fish...
. not protected
Stowing contents of 07 dotfiles/fish (cwd=~/00-09 System)
  => 07 dotfiles/fish
  is_a_node(.)
  link_task_action(.): no task
  dir_task_action(.): no task
    parent_link_scheduled_for_removal(.): prefix
    parent_link_scheduled_for_removal(.): returning false
  is_a_node(.): really exists
  07 dotfiles/fish/.stow-local-ignore didn't exist
  /home/jason/.stow-global-ignore didn't exist
  Using built-in ignore list
    Ignore list regexp for paths:    /(?^:(^|/)(^/\.stow\-local\-ignore$|^/COPYING|^/README.*|^/LICENSE.*)(/|$))/
    Ignore list regexp for segments: /(?^:^(CVS|\.git|.+~|RCS|_darcs|#.*#|\.gitignore|\.#.+|\.svn|\.cvsignore|\.hg|.+,v)$)/
  Not ignoring .config
Stowing 07 dotfiles / fish / .config
  => 07 dotfiles/fish/.config
  is_a_link(.config)
  link_task_action(.config): no task
  is_a_link(.config): is a real link
    parent_link_scheduled_for_removal(.config): prefix .config
    parent_link_scheduled_for_removal(.config): returning false
  link_task_action(.config): no task
  read_a_link(.config): real link
  Evaluate existing link: .config => 07 dotfiles/fish/.config
  is path 07 dotfiles/fish/.config owned by stow?
    yes - by fish in .config
  is_a_node(07 dotfiles/fish/.config)
  link_task_action(07 dotfiles/fish/.config): no task
  dir_task_action(07 dotfiles/fish/.config): no task
    parent_link_scheduled_for_removal(07 dotfiles/fish/.config): prefix 07 dotfiles
    parent_link_scheduled_for_removal(07 dotfiles/fish/.config): prefix 07 dotfiles/fish
    parent_link_scheduled_for_removal(07 dotfiles/fish/.config): prefix 07 dotfiles/fish/.config
    parent_link_scheduled_for_removal(07 dotfiles/fish/.config): returning false
  is_a_node(07 dotfiles/fish/.config): really exists
--- Skipping .config as it already points to 07 dotfiles/fish/.config
Planning stow of package fish... done
cwd restored to /home/jason/00-09 System/07 dotfiles
Processing tasks...


If I move the stow directory back to ~/dotfiles, it works perfectly.

Anonymous

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by aspiers (Posted a comment)
  • -email is unavailable- added by jbd0 (Posted a comment)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-11ef.
    Corresponding source code