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

Fish error: history merge: Expected 0 args, got 2 #1215

Closed
fezboy opened this issue Jul 15, 2021 · 1 comment · Fixed by #1216 or #1217
Closed

Fish error: history merge: Expected 0 args, got 2 #1215

fezboy opened this issue Jul 15, 2021 · 1 comment · Fixed by #1216 or #1217
Labels
Milestone

Comments

@fezboy
Copy link

fezboy commented Jul 15, 2021

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.31 using Python 3.9.6 and Fish Shell 3.3.1

Your system (Debian 7, ArchLinux, Windows, etc.):

Arch Linux

How to reproduce the bug:

Under fish, run `fuck` after an incorrect command

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

$ ca test.txt
fish: Unknown command: ca
$ fuck
DEBUG: Run with settings: {'alter_history': True,
 'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': [],
 'excluded_search_path_prefixes': [],
 'history_limit': None,
 'instant_mode': False,
 'no_colors': False,
 'num_close_matches': 3,
 'priority': {},
 'repeat': False,
 'require_confirmation': True,
 'rules': [<const: All rules enabled>],
 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
 'user_dir': PosixPath('/home/fez/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}
DEBUG: Received output: /bin/sh: line 1: ca: command not found

DEBUG: Call: ca test.txt; with env: {'termite': '', 'VISUAL': 'vim', '__slavic_node_version_display': 'false', 'TERMINAL': 'termite', 'XDG_RUNTIME_DIR': '/run/user/1000', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'INFOPATH': '/bedrock/cross/pin/info:/bedrock/share/info:/usr/local/share/info:/usr/share/info:/bedrock/cross/info', 'MOTD_SHOWN': 'pam', 'NNN_FIFIO': '/tmp/nnn.fifo', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session3', 'FZF_DEFAULT_OPTS': '--cycle --layout=reverse --border --height=90% --preview-window=wrap --marker="*"', 'LANG': 'C', 'TERMINFO_DIRS': '/bedrock/cross/pin/terminfo:/usr/local/share/terminfo:/usr/share/terminfo:/bedrock/cross/terminfo', 'OMF_CONFIG': '/home/fez/.config/omf', 'XDG_SESSION_ID': '5', 'TERMINFO': '/usr/lib/kitty/terminfo', 'GTK3_MODULES': 'xapp-gtk3-module', 'USER': 'fez', 'PATH': '/bedrock/cross/pin/bin:/bedrock/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/games:/usr/games:/home/fez/.local/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/jvm/default/bin:/bedrock/cross/bin', 'WINDOWID': '85983246', 'OMF_PATH': '/home/fez/.local/share/omf', 'EDITOR': 'vim', 'LOGNAME': 'fez', 'PWD': '/tmp/images/Anju/ZY6EBTTGFN/B8049', 'DESKTOP_SESSION': 'i3', 'GTK_MODULES': 'canberra-gtk-module', 'SHLVL': '3', 'XDG_SESSION_TYPE': 'x11', 'HOME': '/home/fez', 'XDG_SESSION_DESKTOP': 'i3', 'XDG_DATA_DIRS': '/bedrock/cross/pin:/usr/local/share:/usr/share:/bedrock/cross', 'DESKTOP_STARTUP_ID': 'i3/kitty/13677-39-archpad_TIME46458573', 'MANPAGER': "sh -c 'col -bx | bat -l man -p'", 'fuck': '', 'COLORTERM': 'truecolor', 'I3SOCK': '/run/user/1000/i3/ipc-socket.13677', 'XDG_VTNR': '1', 'THEFUCK_DEBUG': 'true', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'XDG_CURRENT_DESKTOP': 'i3', 'MANPATH': '/bedrock/cross/pin/man:/bedrock/share/man:/usr/local/share/man:/usr/share/man:/bedrock/cross/man', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'QT_QPA_PLATFORMTHEME': 'qt5ct', 'SHELL': '/bedrock/cross/bin/fish', 'KITTY_WINDOW_ID': '1', 'XAUTHORITY': '/home/fez/.Xauthority', 'MAIL': '/var/spool/mail/fez', 'XDG_SESSION_CLASS': 'user', 'DISPLAY': ':0', 'TERM': 'xterm-kitty', 'XDG_SEAT': 'seat0', 'TF_SHELL': 'fish', 'TF_ALIAS': 'fuck', 'PYTHONIOENCODING': 'utf-8', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:00.006192
DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000355
DEBUG: Importing rule: ag_literal; took: 0:00:00.000395
DEBUG: Importing rule: apt_get; took: 0:00:00.001694
DEBUG: Importing rule: apt_get_search; took: 0:00:00.000277
DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000492
DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000218
DEBUG: Importing rule: apt_upgrade; took: 0:00:00.000282
DEBUG: Importing rule: aws_cli; took: 0:00:00.000221
DEBUG: Importing rule: az_cli; took: 0:00:00.000199
DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.001530
DEBUG: Importing rule: brew_install; took: 0:00:00.000171
DEBUG: Importing rule: brew_link; took: 0:00:00.001496
DEBUG: Importing rule: brew_reinstall; took: 0:00:00.000587
DEBUG: Importing rule: brew_uninstall; took: 0:00:00.000191
DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000159
DEBUG: Importing rule: brew_update_formula; took: 0:00:00.000190
DEBUG: Importing rule: brew_upgrade; took: 0:00:00.000117
DEBUG: Importing rule: cargo; took: 0:00:00.000108
DEBUG: Importing rule: cargo_no_command; took: 0:00:00.000171
DEBUG: Importing rule: cat_dir; took: 0:00:00.000182
DEBUG: Importing rule: cd_correction; took: 0:00:00.000783
DEBUG: Importing rule: cd_cs; took: 0:00:00.000113
DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000215
DEBUG: Importing rule: cd_parent; took: 0:00:00.000110
DEBUG: Importing rule: chmod_x; took: 0:00:00.000113
DEBUG: Importing rule: choco_install; took: 0:00:00.001751
DEBUG: Importing rule: composer_not_command; took: 0:00:00.000331
DEBUG: Importing rule: conda_mistype; took: 0:00:00.000182
DEBUG: Importing rule: cp_create_destination; took: 0:00:00.000325
DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000224
DEBUG: Importing rule: cpp11; took: 0:00:00.000185
DEBUG: Importing rule: dirty_untar; took: 0:00:00.001589
DEBUG: Importing rule: dirty_unzip; took: 0:00:00.001230
DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000132
DEBUG: Importing rule: django_south_merge; took: 0:00:00.000115
DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.001372
DEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000207
DEBUG: Importing rule: docker_login; took: 0:00:00.000186
DEBUG: Importing rule: docker_not_command; took: 0:00:00.000858
DEBUG: Importing rule: dry; took: 0:00:00.000135
DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000248
DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000189
DEBUG: Importing rule: fix_file; took: 0:00:00.002308
DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000507
DEBUG: Importing rule: git_add; took: 0:00:00.000406
DEBUG: Importing rule: git_add_force; took: 0:00:00.000183
DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000255
DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000175
DEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000168
DEBUG: Importing rule: git_branch_exists; took: 0:00:00.000188
DEBUG: Importing rule: git_branch_list; took: 0:00:00.000171
DEBUG: Importing rule: git_checkout; took: 0:00:00.000188
DEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.000170
DEBUG: Importing rule: git_commit_amend; took: 0:00:00.000169
DEBUG: Importing rule: git_commit_reset; took: 0:00:00.000186
DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000171
DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000167
DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000181
DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000171
DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000174
DEBUG: Importing rule: git_hook_bypass; took: 0:00:00.000165
DEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.000181
DEBUG: Importing rule: git_merge; took: 0:00:00.000209
DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000178
DEBUG: Importing rule: git_not_command; took: 0:00:00.000164
DEBUG: Importing rule: git_pull; took: 0:00:00.000167
DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000309
DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000282
DEBUG: Importing rule: git_push; took: 0:00:00.000201
DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000176
DEBUG: Importing rule: git_push_force; took: 0:00:00.000176
DEBUG: Importing rule: git_push_pull; took: 0:00:00.000189
DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000566
DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000383
DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000178
DEBUG: Importing rule: git_remote_delete; took: 0:00:00.000179
DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000159
DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000198
DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000237
DEBUG: Importing rule: git_rm_staged; took: 0:00:00.000174
DEBUG: Importing rule: git_stash; took: 0:00:00.000179
DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000207
DEBUG: Importing rule: git_tag_force; took: 0:00:00.000177
DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000284
DEBUG: Importing rule: go_run; took: 0:00:00.000302
DEBUG: Importing rule: go_unknown_command; took: 0:00:00.000492
DEBUG: Importing rule: gradle_no_task; took: 0:00:00.000448
DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000187
DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000192
DEBUG: Importing rule: grep_recursive; took: 0:00:00.000183
DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000378
DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000199
DEBUG: Importing rule: has_exists_script; took: 0:00:00.000358
DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000298
DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000189
DEBUG: Importing rule: history; took: 0:00:00.000126
DEBUG: Importing rule: hostscli; took: 0:00:00.000225
DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000210
DEBUG: Importing rule: java; took: 0:00:00.000181
DEBUG: Importing rule: javac; took: 0:00:00.000183
DEBUG: Importing rule: lein_not_task; took: 0:00:00.000210
DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000187
DEBUG: Importing rule: ln_s_order; took: 0:00:00.000185
DEBUG: Importing rule: long_form_help; took: 0:00:00.000186
DEBUG: Importing rule: ls_all; took: 0:00:00.000279
DEBUG: Importing rule: ls_lah; took: 0:00:00.000305
DEBUG: Importing rule: man; took: 0:00:00.000193
DEBUG: Importing rule: man_no_space; took: 0:00:00.000111
DEBUG: Importing rule: mercurial; took: 0:00:00.000200
DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000133
DEBUG: Importing rule: mkdir_p; took: 0:00:00.000165
DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000232
DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000188
DEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000836
DEBUG: Importing rule: no_command; took: 0:00:00.000306
DEBUG: Importing rule: no_such_file; took: 0:00:00.000214
DEBUG: Importing rule: npm_missing_script; took: 0:00:00.000523
DEBUG: Importing rule: npm_run_script; took: 0:00:00.000194
DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000234
DEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.002004
DEBUG: Importing rule: open; took: 0:00:00.000375
DEBUG: Importing rule: pacman; took: 0:00:00.001091
DEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.000282
DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000232
DEBUG: Importing rule: path_from_history; took: 0:00:00.000182
DEBUG: Importing rule: php_s; took: 0:00:00.000233
DEBUG: Importing rule: pip_install; took: 0:00:00.000298
DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000212
DEBUG: Importing rule: port_already_in_use; took: 0:00:00.000578
DEBUG: Importing rule: prove_recursively; took: 0:00:00.000245
DEBUG: Importing rule: pyenv_no_such_command; took: 0:00:00.000345
DEBUG: Importing rule: python_command; took: 0:00:00.000191
DEBUG: Importing rule: python_execute; took: 0:00:00.000186
DEBUG: Importing rule: python_module_error; took: 0:00:00.000130
DEBUG: Importing rule: quotation_marks; took: 0:00:00.000113
DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000238
DEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000135
DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000119
DEBUG: Importing rule: rm_dir; took: 0:00:00.000179
DEBUG: Importing rule: rm_root; took: 0:00:00.000174
DEBUG: Importing rule: scm_correction; took: 0:00:00.000193
DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000186
DEBUG: Importing rule: sl_ls; took: 0:00:00.000116
DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000193
DEBUG: Importing rule: sudo; took: 0:00:00.000140
DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000241
DEBUG: Importing rule: switch_lang; took: 0:00:00.000235
DEBUG: Importing rule: systemctl; took: 0:00:00.000222
DEBUG: Importing rule: terraform_init; took: 0:00:00.000203
DEBUG: Importing rule: test.py; took: 0:00:00.000121
DEBUG: Importing rule: tmux; took: 0:00:00.000185
DEBUG: Importing rule: touch; took: 0:00:00.000175
DEBUG: Importing rule: tsuru_login; took: 0:00:00.000215
DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000189
DEBUG: Importing rule: unknown_command; took: 0:00:00.000120
DEBUG: Importing rule: unsudo; took: 0:00:00.000123
DEBUG: Importing rule: vagrant_up; took: 0:00:00.000180
DEBUG: Importing rule: whois; took: 0:00:00.000411
DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000214
DEBUG: Importing rule: yarn_alias; took: 0:00:00.000180
DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000763
DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000379
DEBUG: Importing rule: yarn_help; took: 0:00:00.000183
DEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.000845
DEBUG: Trying rule: path_from_history; took: 0:00:00.000553
DEBUG: Trying rule: cd_cs; took: 0:00:00.000064
DEBUG: Trying rule: dry; took: 0:00:00.000005
DEBUG: Trying rule: git_hook_bypass; took: 0:00:00.000055
DEBUG: Trying rule: git_stash_pop; took: 0:00:00.000031
DEBUG: Trying rule: test.py; took: 0:00:00.000003
DEBUG: Trying rule: adb_unknown_command; took: 0:00:00.000015
DEBUG: Trying rule: ag_literal; took: 0:00:00.000031
DEBUG: Trying rule: apt_get_search; took: 0:00:00.000028
DEBUG: Trying rule: apt_invalid_operation; took: 0:00:00.000040
DEBUG: Trying rule: apt_list_upgradable; took: 0:00:00.000036
DEBUG: Trying rule: apt_upgrade; took: 0:00:00.000035
DEBUG: Trying rule: aws_cli; took: 0:00:00.000025
DEBUG: Trying rule: az_cli; took: 0:00:00.000025
DEBUG: Trying rule: brew_link; took: 0:00:00.000028
DEBUG: Trying rule: brew_reinstall; took: 0:00:00.000025
DEBUG: Trying rule: brew_uninstall; took: 0:00:00.000024
DEBUG: Trying rule: brew_update_formula; took: 0:00:00.000025
DEBUG: Trying rule: cargo; took: 0:00:00.000002
DEBUG: Trying rule: cargo_no_command; took: 0:00:00.000027
DEBUG: Trying rule: cat_dir; took: 0:00:00.000028
DEBUG: Trying rule: cd_correction; took: 0:00:00.000037
DEBUG: Trying rule: cd_mkdir; took: 0:00:00.000050
DEBUG: Trying rule: cd_parent; took: 0:00:00.000008
DEBUG: Trying rule: chmod_x; took: 0:00:00.000008
DEBUG: Trying rule: composer_not_command; took: 0:00:00.000067
DEBUG: Trying rule: conda_mistype; took: 0:00:00.000050
DEBUG: Trying rule: cp_create_destination; took: 0:00:00.000043
DEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000061
DEBUG: Trying rule: cpp11; took: 0:00:00.000039
DEBUG: Trying rule: dirty_untar; took: 0:00:00.000031
DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000034
DEBUG: Trying rule: django_south_ghost; took: 0:00:00.000003
DEBUG: Trying rule: django_south_merge; took: 0:00:00.000003
DEBUG: Trying rule: docker_image_being_used_by_container; took: 0:00:00.000032
DEBUG: Trying rule: docker_login; took: 0:00:00.000026
DEBUG: Trying rule: docker_not_command; took: 0:00:00.000036
DEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000038
DEBUG: Trying rule: fix_alt_space; took: 0:00:00.000019
DEBUG: Trying rule: fix_file; took: 0:00:00.000053
vim /bin/sh +1; and ca test.txt [enter/↑/↓/ctrl+c]DEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000177
DEBUG: Trying rule: git_add; took: 0:00:00.000053
DEBUG: Trying rule: git_add_force; took: 0:00:00.000030
DEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000027
DEBUG: Trying rule: git_branch_delete; took: 0:00:00.000027
DEBUG: Trying rule: git_branch_delete_checked_out; took: 0:00:00.000026
DEBUG: Trying rule: git_branch_exists; took: 0:00:00.000026
DEBUG: Trying rule: git_branch_list; took: 0:00:00.000026
DEBUG: Trying rule: git_checkout; took: 0:00:00.000025
DEBUG: Trying rule: git_clone_git_clone; took: 0:00:00.000025
DEBUG: Trying rule: git_commit_amend; took: 0:00:00.000026
DEBUG: Trying rule: git_commit_reset; took: 0:00:00.000026
DEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000026
DEBUG: Trying rule: git_diff_staged; took: 0:00:00.000025
DEBUG: Trying rule: git_fix_stash; took: 0:00:00.000025
DEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000026
DEBUG: Trying rule: git_help_aliased; took: 0:00:00.000025
DEBUG: Trying rule: git_lfs_mistype; took: 0:00:00.000024
DEBUG: Trying rule: git_merge; took: 0:00:00.000026
DEBUG: Trying rule: git_merge_unrelated; took: 0:00:00.000025
DEBUG: Trying rule: git_not_command; took: 0:00:00.000024
DEBUG: Trying rule: git_pull; took: 0:00:00.000025
DEBUG: Trying rule: git_pull_clone; took: 0:00:00.000025
DEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000024
DEBUG: Trying rule: git_push; took: 0:00:00.000026
DEBUG: Trying rule: git_push_different_branch_names; took: 0:00:00.000024
DEBUG: Trying rule: git_push_pull; took: 0:00:00.000024
DEBUG: Trying rule: git_push_without_commits; took: 0:00:00.000025
DEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000025
DEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000025
DEBUG: Trying rule: git_remote_delete; took: 0:00:00.000025
DEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000024
DEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000025
DEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000025
DEBUG: Trying rule: git_rm_staged; took: 0:00:00.000025
DEBUG: Trying rule: git_stash; took: 0:00:00.000025
DEBUG: Trying rule: git_tag_force; took: 0:00:00.000025
DEBUG: Trying rule: git_two_dashes; took: 0:00:00.000032
DEBUG: Trying rule: go_run; took: 0:00:00.000028
DEBUG: Trying rule: go_unknown_command; took: 0:00:00.000025
DEBUG: Trying rule: gradle_no_task; took: 0:00:00.000027
DEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000027
DEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000027
DEBUG: Trying rule: grep_recursive; took: 0:00:00.000026
DEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000026
DEBUG: Trying rule: gulp_not_task; took: 0:00:00.000026
DEBUG: Trying rule: has_exists_script; took: 0:00:00.000042
DEBUG: Trying rule: heroku_multiple_apps; took: 0:00:00.000027
DEBUG: Trying rule: heroku_not_command; took: 0:00:00.000025
DEBUG: Trying rule: hostscli; took: 0:00:00.000038
DEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000026
DEBUG: Trying rule: java; took: 0:00:00.000027
DEBUG: Trying rule: javac; took: 0:00:00.000026
DEBUG: Trying rule: lein_not_task; took: 0:00:00.000037
DEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000018
DEBUG: Trying rule: ln_s_order; took: 0:00:00.000017
DEBUG: Trying rule: ls_all; took: 0:00:00.000033
DEBUG: Trying rule: ls_lah; took: 0:00:00.000026
DEBUG: Trying rule: man; took: 0:00:00.000035
DEBUG: Trying rule: mercurial; took: 0:00:00.000037
DEBUG: Trying rule: mkdir_p; took: 0:00:00.000025
DEBUG: Trying rule: mvn_no_command; took: 0:00:00.000037
DEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000037
DEBUG: Trying rule: no_such_file; took: 0:00:00.001267
DEBUG: Trying rule: npm_missing_script; took: 0:00:00.000061
DEBUG: Trying rule: npm_run_script; took: 0:00:00.000043
DEBUG: Trying rule: npm_wrong_command; took: 0:00:00.000067
DEBUG: Trying rule: open; took: 0:00:00.000048
DEBUG: Trying rule: pacman_invalid_option; took: 0:00:00.000041
DEBUG: Trying rule: php_s; took: 0:00:00.000030
DEBUG: Trying rule: pip_install; took: 0:00:00.000042
DEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000036
DEBUG: Trying rule: prove_recursively; took: 0:00:00.000026
DEBUG: Trying rule: pyenv_no_such_command; took: 0:00:00.000025
DEBUG: Trying rule: python_command; took: 0:00:00.000018
DEBUG: Trying rule: python_execute; took: 0:00:00.000025
DEBUG: Trying rule: python_module_error; took: 0:00:00.000003
DEBUG: Trying rule: quotation_marks; took: 0:00:00.000003
DEBUG: Trying rule: react_native_command_unrecognized; took: 0:00:00.000025
DEBUG: Trying rule: remove_shell_prompt_literal; took: 0:00:00.000003
DEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00.000003
DEBUG: Trying rule: rm_dir; took: 0:00:00.000016
DEBUG: Trying rule: scm_correction; took: 0:00:00.000025
DEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000025
DEBUG: Trying rule: sl_ls; took: 0:00:00.000003
DEBUG: Trying rule: ssh_known_hosts; took: 0:00:00.000026
DEBUG: Trying rule: sudo; took: 0:00:00.000012
DEBUG: Trying rule: sudo_command_from_user_path; took: 0:00:00.000025
DEBUG: Trying rule: switch_lang; took: 0:00:00.000042
DEBUG: Trying rule: systemctl; took: 0:00:00.000038
DEBUG: Trying rule: terraform_init; took: 0:00:00.000027
DEBUG: Trying rule: tmux; took: 0:00:00.000027
DEBUG: Trying rule: touch; took: 0:00:00.000027
DEBUG: Trying rule: tsuru_login; took: 0:00:00.000026
DEBUG: Trying rule: tsuru_not_command; took: 0:00:00.000024
DEBUG: Trying rule: unknown_command; took: 0:00:00.000208
DEBUG: Trying rule: unsudo; took: 0:00:00.000005
DEBUG: Trying rule: vagrant_up; took: 0:00:00.000033
DEBUG: Trying rule: whois; took: 0:00:00.000033
DEBUG: Trying rule: workon_doesnt_exists; took: 0:00:00.000030
DEBUG: Trying rule: yarn_alias; took: 0:00:00.000030
DEBUG: Trying rule: yarn_command_not_found; took: 0:00:00.000029
DEBUG: Trying rule: yarn_command_replaced; took: 0:00:00.000028
DEBUG: Trying rule: yarn_help; took: 0:00:00.000039
DEBUG: Trying rule: man_no_space; took: 0:00:00.000005
DEBUG: Trying rule: no_command; took: 0:00:00.851646
DEBUG: Trying rule: missing_space_before_subcommand; took: 0:00:00.002833
DEBUG: Trying rule: long_form_help; took: 0:00:00.000422
DEBUG: Trying rule: history; took: 0:00:00.000066
DEBUG: Corrected commands: CorrectedCommand(script=vim /bin/sh +1; and ca test.txt, side_effect=None, priority=1000), CorrectedCommand(script=cat test.txt, side_effect=None, priority=3000)
cat test.txt [enter/↑/↓/ctrl+c]
DEBUG: PYTHONIOENCODING: utf-8
DEBUG: Total took: 0:00:05.106051
test
history merge: Expected 0 args, got 2

If the bug only appears with a specific application, the output of that application and its version:

fish, version 3.3.1

This happens every time fuck successfully unfucks on fish, and seems to be caused by line 7 of the fish alias:

builtin history merge ^ /dev/null
@scorphus
Copy link
Collaborator

Thanks for reporting, @fezboy. Redirection to standard error with the ^ character is disabled by default since Fish Shell version 3.3.

@scorphus scorphus added the fish label Jul 16, 2021
@scorphus scorphus added this to the 3.32 milestone Jul 16, 2021
scorphus added a commit to scorphus/thefuck that referenced this issue Jul 17, 2021
Redirection to standard error with the `^` character is disabled by
default since Fish Shell version 3.3[1].

Fix nvbn#1214

[1]: https://github.com/fish-shell/fish-shell/blob/master/CHANGELOG.rst#deprecations-and-removed-features-1
scorphus added a commit that referenced this issue Jul 18, 2021
Redirection to standard error with the `^` character is disabled by
default since Fish Shell version 3.3[1].

Fix #1214

[1]: https://github.com/fish-shell/fish-shell/blob/master/CHANGELOG.rst#deprecations-and-removed-features-1
scorphus added a commit to scorphus/thefuck that referenced this issue Jul 18, 2021
@scorphus scorphus linked a pull request Jul 18, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants