Tag Info

Hot answers tagged

2

All you need is reptyr. It lives on GitHub and has been packaged for Debian since Wheezy, and probably for other GNU/Linux distros, too. It will foreground your disowned process in the current terminal if you invoke it with its process ID (PID). So for example: pgrep -f DISOWNED_PROCESS # to find out the PID of the disowned process reptyr PID ...


2

PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files (i.e., ready-to-run programs) in response to commands issued by a user. To see the value of PATH variable, do it as echo $PATH. In your case, sh will look for executable in /bin and /usr/bin ...


1

If your shortcut is using mintty.exe then change it to: C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico /bin/zsh --login


1

It seems you have bound the space key to magic-space, because the introduction to zsh explains: If you bind space to magic-space, then csh-style history expansion is done on the line whenever you press the space bar. So, either remove the line bindkey " " magic-space from your config. Or (if you are using some pre-defined config files like ...


1

"execute: " is the prompt of the execute-named-cmd zle (zsh line editor) widget, which allows you to run any other zle widget by entering its name (it even has Tab-completion). By default is is bound to ESC-x (that is Alt+x or Esc, x) in emacs mode and to : in vicmd mode (usually reached by typing Esc from viins mode or Ctrl+x,Ctrl+v from emacs mode). To ...


1

If you run your script with -x (both bash and zsh) you will see that the $(...) code gets interpreted/parsed differently. This is because, as stated in the FAQ, word splitting in zsh is backwards/bash/sh incompatible. You can use SH_WORD_SPLIT to address this difference. Ok, so it is not a word split problem as we have a command substitution, quoting the ...



Only top voted, non community-wiki answers of a minimum length are eligible