Você pode contornar isso com cat nsfns.diff | patch nsfns.m
.
Ao tentar executar um patch a partir de um buffer de Eshell (por exemplo, patch nsfns.m < nsfns.diff
), recebo uma mensagem de erro (abaixo). Existe uma maneira de aplicar um patch usando um buffer Eshell? Se não, existe outro modo principal de emulação de tipo de terminal que permitirá a aplicação de um patch?
Debugger entered--Lisp error: (error "Eshell does not support input redirection")
signal(error ("Eshell does not support input redirection"))
error("Eshell does not support input redirection")
eshell-parse-redirection()
run-hook-with-args-until-success(eshell-parse-redirection)
#[0 "m?5-�23!6�45f!5u04�12)� 4$�C6C4002��7" [eshell-current-argument eshell-arg-listified run-hook-with-args-until-success eshell-parse-argument-hook char-to-string nil t] 3 "\n\n(fn)"]()
funcall(#[0 "m?5-�23!6�45f!5u04�12)� 4$�C6C4002��7" [eshell-current-argument eshell-arg-listified run-hook-with-args-until-success eshell-parse-argument-hook char-to-string nil t] 3 "\n\n(fn)"])
eshell-parse-argument()
#[0 "m?5#�'1 'U3�23d{\"013�0C4062��7" [(t "patch" "nsfns.m") eshell-parse-argument error "Failed to parse argument '%s'"] 6 "\n\n(fn)"]()
funcall(#[0 "m?5#�'1 'U3�23d{\"013�0C4062��7" [(t "patch" "nsfns.m") eshell-parse-argument error "Failed to parse argument '%s'"] 6 "\n\n(fn)"])
eshell-parse-arguments(#<marker at 90 in *eshell*> 116)
#[0 "32410\"007" [116 #<marker at 90 in *eshell*> (nil) nil eshell-parse-arguments] 5 "\n\n(fn)"]()
funcall(#[0 "32410\"007" [116 #<marker at 90 in *eshell*> (nil) nil eshell-parse-arguments] 5 "\n\n(fn)"])
eshell-hist-parse-arguments(#<marker at 90 in *eshell*> 116)
eshell-expand-history-references(#<marker at 90 in *eshell*> 116)
run-hook-with-args(eshell-expand-history-references #<marker at 90 in *eshell*> 116)
#[0 "04 'S\"0056 'S#07 'S\"15?�0 !004\nS\"0012!034567010\"2\"34%D55?�5 7" [("patch nsfns.m < nsfns.diff") eshell-last-output-end eshell-last-input-start eshell-last-input-end buffer-substring-no-properties run-hook-with-args eshell-expand-input-functions eshell-parse-command-input eshell-update-markers run-hooks eshell-input-filter-functions eshell-terminal funcall make-byte-code 0 "231!3\f�41!075102\"07" vconcat vector [nil eshell-invoke-directly eval eshell-eval-command] 4 "\n\n(fn)" eshell-life-is-too-much] 10 "\n\n(fn)"]()
funcall(#[0 "04 'S\"0056 'S#07 'S\"15?�0 !004\nS\"0012!034567010\"2\"34%D55?�5 7" [("patch nsfns.m < nsfns.diff") eshell-last-output-end eshell-last-input-start eshell-last-input-end buffer-substring-no-properties run-hook-with-args eshell-expand-input-functions eshell-parse-command-input eshell-update-markers run-hooks eshell-input-filter-functions eshell-terminal funcall make-byte-code 0 "231!3\f�41!075102\"07" vconcat vector [nil eshell-invoke-directly eval eshell-eval-command] 4 "\n\n(fn)" eshell-life-is-too-much] 10 "\n\n(fn)"])
eshell-send-input(nil)
funcall-interactively(eshell-send-input nil)
call-interactively(eshell-send-input nil nil)
command-execute(eshell-send-input)
Tags emacs