Tag Info

New answers tagged


Your Ctrl-r is being intercepted by the kernel-based terminal cookied line processing engine. While sleep is running, the terminal is in cooked mode, which means that the kernel-based tty line editor is working. The tty line editor supports rudimentary command line editing. The erase key (usually set to Ctrl-h (backspace) or Del) and the kill key (usually ...


while ((1)) ; do echo please define path: read input echo is $input ok [y/n/abort]? read answer case $answer in [yY]|[Yy][Ee][Ss]*) path=$input break ;; [Aa][Bb][Oo][Rr][Tt]) exit ;; [Nn]|[Nn][Oo]) ;; *) echo invalid input, please try again ;; esac done in other words: an infinite ...


Use the same thing in the {,} "duplicator". I.e.: git tag -m {v,v}1.0.1 # same as git tag -m v1.0.1 v1.0.1

Top 50 recent answers are included