Я полагаю, что Shift+PgUp/PgDn является привязкой для блуждания scrollback под терминалом по умолчанию в недавних релизах Ubuntu.
Надлежащий вызов патча будет быть похожим:
patch -p1 < net-ssh2-0.18-perl5.10.patch
Вы имеете, делают это в каталоге, где файл SSH2.xs.
-p<num> or --strip=num
Strip the smallest prefix containing num leading slashes from each file name found in the patch file. A sequence of one or more adjacent
slashes is counted as a single slash. This controls how file names found in the patch file are treated, in case you keep your files in a
different directory than the person who sent out the patch. For example, supposing the file name in the patch file was
/u/howard/src/blurfl/blurfl.c
setting -p0 gives the entire file name unmodified, -p1 gives
u/howard/src/blurfl/blurfl.c
without the leading slash, -p4 gives
blurfl/blurfl.c
and not specifying -p at all just gives you blurfl.c. Whatever you end up with is looked for either in the current directory, or the direc-
tory specified by the -d option.
-p1
, посмотрите При исправлении того, что различие между аргументами-p0 и-p1? – Gilles 'SO- stop being evil' 30.12.2011, 23:52Net-SSH-0.18.orig/SSH2.xs
. При использовании-p1 parametr утилита патча разделит от этой строки ведущий каталог, и Вы получите a/SSH2.xs
, который Вы хотите патч. С-p0 параметром исправит, ничего не разделяют от этой строки. обновления – Jan Marek 02.01.2012, 09:58