FreeBSD Bugzilla – Attachment 9763 Details for
Bug 19858
mergemasters interpretation of $PAGER is incorrect [PATCH]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mm-4.diff
mm-4.diff (text/plain; charset=us-ascii), 1.77 KB, created by
DougB
on 2000-07-27 22:13:09 UTC
(
hide
)
Description:
mm-4.diff
Filename:
MIME Type:
Creator:
DougB
Created:
2000-07-27 22:13:09 UTC
Size:
1.77 KB
patch
obsolete
>Index: mergemaster.sh >=================================================================== >RCS file: /usr/ncvs/src/usr.sbin/mergemaster/mergemaster.sh,v >retrieving revision 1.6 >diff -u -r1.6 mergemaster.sh >--- mergemaster.sh 2000/02/12 22:14:02 1.6 >+++ mergemaster.sh 2000/07/25 10:12:49 >@@ -107,15 +107,14 @@ > # > case "${DONT_CHECK_PAGER}" in > '') >- if [ -n "${PAGER}" -a ! -x "${PAGER%% *}" ]; then >+ if ! type "${PAGER%% *}" >/dev/null && [ -n "${PAGER}" ]; then > echo " *** Your PAGER environment variable specifies '${PAGER}', but" >- echo " I cannot execute it. In general it is good practice to" >- echo " specify the full path for environment variables like" >- echo " PAGER and EDITOR. Meanwhile, what would you like to do?" >+ echo " due to the limited PATH that I use for security reasons," >+ echo " I cannot execute it. So, what would you like to do?" > echo '' > echo " Use 'e' to exit mergemaster and fix your PAGER variable" >- if [ -x /usr/local/bin/less ]; then >- echo " Use 'l' to set PAGER to /usr/local/bin/less for this run" >+ if [ -x /usr/bin/less -o -x /usr/local/bin/less ]; then >+ echo " Use 'l' to set PAGER to 'less' for this run" > fi > echo " Use 'm' to use plain old 'more' as your PAGER for this run" > echo '' >@@ -127,7 +126,17 @@ > exit 0 > ;; > [lL]*) >- PAGER=/usr/local/bin/less >+ if [ -x /usr/bin/less ]; then >+ PAGER=/usr/bin/less >+ elif [ -x /usr/local/bin/less ]; then >+ PAGER=/usr/local/bin/less >+ else >+ echo '' >+ echo " *** Fatal Error:" >+ echo " You asked to use 'less' as your pager, but I can't" >+ echo " find it in /usr/bin or /usr/local/bin" >+ exit 1 >+ fi > ;; > *) > PAGER=more
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19858
:
9762
| 9763 |
9764