zplug icon indicating copy to clipboard operation
zplug copied to clipboard

timout command issue

Open vincentbesson opened this issue 8 years ago • 1 comments

  • Type:
    • [x] Bug
    • [ ] Enhancement
    • [ ] Feature Request
    • [ ] Question

  • zplug --version: 2.4.1
  • zsh --version: zsh 5.3.1 (x86_64-unknown-linux-gnu)
  • uname -a: Linux overvince 4.9.8-1-ARCH #1 SMP PREEMPT Mon Feb 6 12:59:40 CET 2017 x86_64 GNU/Linux

Hi,

To be honest I don't know how could it be, but activating ZPLUG seems to mess up commands begining with a timout delay before aborting. That is not a hard issue for my day to day use of zsh, but there may be some other problems behind it, I don't know.

BTW, thanks for your amazing application.

Vincent

Minimal .zshrc

The .zshrc file:

export ZPLUG_HOME=$HOME/.config/zplug
source $ZPLUG_HOME/init.zsh
zplug load

alias mkdir='mkdir -p -v'
alias rm='timout 3 rm -Iv --one-file-system'

Steps to reproduce

Tests on terminal command line:

  1. With ZPLUG
overvince% mkdir test/test
mkdir: created directory 'test'
mkdir: created directory 'test/test'
overvince% rm -r test
rm: remove 1 argument recursively? y
overvince% y
zsh: command not found: y
  1. Without ZPLUG (3 first lines commented on .zshrc)
overvince% mkdir test/test
mkdir: created directory 'test'
mkdir: created directory 'test/test'
overvince% rm -r test
rm: remove 1 argument recursively? y
removed directory 'test/test'
removed directory 'test'

alias rm='rm -Iv --one-file-system' works as expected (recursively), with or without ZPLUG.

vincentbesson avatar Feb 11 '17 22:02 vincentbesson

Sorry for late and thanks for reporting. But I cant reproduce your problem.

[vagrant@localhost]~% mkdir test/test
mkdir: created directory `test'
mkdir: created directory `test/test'
[vagrant@localhost]~% rm -r test
rm: remove all arguments recursively? y
removed directory: `test/test'
removed directory: `test'
[vagrant@localhost]~%

babarot avatar Mar 30 '17 11:03 babarot