Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2009-07-22 Thread Colin Watson
clone 363250 -1 reassign -1 general retitle -1 PAGER as a pipeline tags 363250 fixed-upstream thanks On Sun, Apr 23, 2006 at 09:52:34PM +0200, Loïc Minier wrote: Yes, indeed, the root of the problem is the change of support for pipelines. However, I'm not sure that pipelines worked in the

Processed: Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2009-07-22 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org: clone 363250 -1 Bug#363250: please clarify in the man manpage how $PAGER is invoked Bug 363250 cloned as bug 538022. reassign -1 general Bug#538022: please clarify in the man manpage how $PAGER is invoked Bug reassigned from package `man-db' to

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-24 Thread Loïc Minier
On Sun, Apr 23, 2006, Manoj Srivastava wrote: Historically, if my memory serves me correctly, one used PAGER to specify the program, and the default arguments. PAGER essentially worked as an shell alias: PAGER= less -cim And then you could either pipe thigs to ti, or call it on a

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-23 Thread Manoj Srivastava
On 22 Apr 2006, Loïc Minier outgrape: On Sat, Apr 22, 2006, Manoj Srivastava wrote: There are two use cases that any pager directive must address: 1) The program is going to generate output which must be piped to a pager 2) The program want to send a file to the user. I agree that these

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-23 Thread Loïc Minier
On Sun, Apr 23, 2006, Manoj Srivastava wrote: Since allowing pipelines seems to be the motivating factor here, we do need to solve that, I think. Yes, indeed, the root of the problem is the change of support for pipelines. However, I'm not sure that pipelines worked in the use case

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-23 Thread Miles Bader
Manoj Srivastava [EMAIL PROTECTED] writes: I read it. I still think that my answer suffices: Put your pipeline in a script, and set that to PAGER. Your answer doesn't suffice, because it's not what people expect -- PAGER has historically (for a _long_ time) supported arguments being

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-23 Thread Manoj Srivastava
On 23 Apr 2006, Loïc Minier verbalised: On Sun, Apr 23, 2006, Manoj Srivastava wrote: Since allowing pipelines seems to be the motivating factor here, we do need to solve that, I think. Yes, indeed, the root of the problem is the change of support for pipelines. However, I'm not sure that

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-23 Thread Manoj Srivastava
On 23 Apr 2006, Miles Bader spake thusly: Manoj Srivastava [EMAIL PROTECTED] writes: I read it. I still think that my answer suffices: Put your pipeline in a script, and set that to PAGER. Your answer doesn't suffice, because it's not what people expect -- PAGER has historically (for a

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-22 Thread Manoj Srivastava
On 21 Apr 2006, Loïc Minier spake thusly: Hi, On Fri, Apr 21, 2006, Manoj Srivastava wrote: Here is my solution for using vim + script as a pager; similar mechanisms can be used to use plain vim as PAGER as well. Nice, I suggest filing a new bug against vim to propose this as a contrib

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-22 Thread Loïc Minier
On Sat, Apr 22, 2006, Manoj Srivastava wrote: #363250 is more about documenting the semantics of $PAGER (whether it can uses sh syntax, or whether it's a command with parameters separated with spaces), to be documented in man man, and/or policy. Err, we should define how it behaves,

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-22 Thread Manoj Srivastava
On 22 Apr 2006, Loïc Minier spake thusly: On Sat, Apr 22, 2006, Manoj Srivastava wrote: 363250 is more about documenting the semantics of $PAGER (whether it can uses sh syntax, or whether it's a command with parameters separated with spaces), to be documented in man man, and/or policy. Err,

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-22 Thread Loïc Minier
Hi, On Sat, Apr 22, 2006, Manoj Srivastava wrote: Please read again the original report, the submitter wanted to have a pipe of commands in $PAGER, he said this worked in the past, and works on other distros. He did not want to simply be able to use $PAGER on a file or to pipe

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-21 Thread Manoj Srivastava
Hi, Here is my solution for using vim + script as a pager; similar mechanisms can be used to use plain vim as PAGER as well. , | #!/bin/bash | # Shell script to start Vim with less.vim. | # Read stdin if no arguments were given. | | #VRUNTIME=/usr/share/vim/vim64/ |

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-21 Thread Loïc Minier
Hi, On Fri, Apr 21, 2006, Manoj Srivastava wrote: Here is my solution for using vim + script as a pager; similar mechanisms can be used to use plain vim as PAGER as well. Nice, I suggest filing a new bug against vim to propose this as a contrib script, or to ship it as

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-21 Thread James Vega
On Fri, Apr 21, 2006 at 08:36:10AM -0500, Manoj Srivastava wrote: Hi, Here is my solution for using vim + script as a pager; similar mechanisms can be used to use plain vim as PAGER as well. [snip script] There is already a less.sh that does this, which is in the same directory

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-20 Thread Steve Langasek
On Thu, Apr 20, 2006 at 12:05:16AM -0500, Manoj Srivastava wrote: I expect to be able to pipe stuff to $PAGER, or invoke $PAGER on a text file, like so: % cat~/.bash_profile | $PAGER % $PAGER ~/.bash_profile That seems to be an awfully user-specific expectation, given that you

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-20 Thread Manoj Srivastava
On 20 Apr 2006, Steve Langasek spake thusly: On Thu, Apr 20, 2006 at 12:05:16AM -0500, Manoj Srivastava wrote: I expect to be able to pipe stuff to $PAGER, or invoke $PAGER on a text file, like so: % cat~/.bash_profile | $PAGER % $PAGER ~/.bash_profile That seems to be an awfully

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-19 Thread Miles Bader
Henning Makholm [EMAIL PROTECTED] writes: Policy does not really specify how to handle $PAGER and its friends, but I have always assumed that it was OK for a package to do things like (error checking omitted for clarity): ... In that case, PAGER has to be set to just the name of a program,

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-19 Thread Loïc Minier
On Wed, Apr 19, 2006, Henning Makholm wrote: Policy does not really specify how to handle $PAGER and its friends Feel free to clone against policy, I agree that it would be cleaner to define how it should be called in policy (but it would still be nice to have man man document how $PAGER is

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-19 Thread Manoj Srivastava
On 18 Apr 2006, Loïc Minier uttered the following: reassign 363250 man retitle 363250 Please clarify how $PAGER is invoked in the man manpage stop Hi, On Tue, Apr 18, 2006, Rohan Dhruva wrote: export PAGER=col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' - This $PAGER

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-19 Thread Steve Langasek
On Wed, Apr 19, 2006 at 09:12:04AM -0500, Manoj Srivastava wrote: which explicitely calls sh -c to handle pipes and quotes in the expected way. I expect to be able to pipe stuff to $PAGER, or invoke $PAGER on a text file, like so: % cat~/.bash_profile | $PAGER % $PAGER

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-19 Thread Manoj Srivastava
On 19 Apr 2006, Steve Langasek uttered the following: On Wed, Apr 19, 2006 at 09:12:04AM -0500, Manoj Srivastava wrote: which explicitely calls sh -c to handle pipes and quotes in the expected way. I expect to be able to pipe stuff to $PAGER, or invoke $PAGER on a text file, like so: %

Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Rohan Dhruva
Package: general Severity: normal I want to use vim as my man pager. On other distros, and on sarge, I use this line in my .bashrc # Set vim as the man pager export PAGER=col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' - In those systems, it displays the man page properly in

Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Martijn van Oosterhout
On 4/18/06, Rohan Dhruva [EMAIL PROTECTED] wrote: Package: general Severity: normal I want to use vim as my man pager. On other distros, and on sarge, I use this line in my .bashrc # Set vim as the man pager export PAGER=col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' -

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Jon Dowland
At 1145360089 past the epoch, Rohan Dhruva wrote: # Set vim as the man pager export PAGER=col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' - In those systems, it displays the man page properly in vim with full color. However, on using the same line on sid, the error given is

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Loïc Minier
reassign 363250 man retitle 363250 Please clarify how $PAGER is invoked in the man manpage stop Hi, On Tue, Apr 18, 2006, Rohan Dhruva wrote: export PAGER=col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' - This $PAGER definition makes the assumption that it's passed to

Processed: Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: reassign 363250 man Bug#363250: general: Custom PAGER gives error on sid, but works on sarge Warning: Unknown package 'man' Bug reassigned from package `general' to `man'. retitle 363250 Please clarify how $PAGER is invoked in the man manpage

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Loïc Minier
reassign 363250 man-db retitle 363250 please clarify in the man manpage how $PAGER is invoked stop Hi, On Tue, Apr 18, 2006, Rohan Dhruva wrote: I suggest you use: export PAGER=sh -c \col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' -\ That didnt work.

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Rohan Dhruva
On 4/18/06, Loïc Minier [EMAIL PROTECTED] wrote: reassign 363250 manretitle 363250 Please clarify how $PAGER is invoked in the man manpagestopHi,On Tue, Apr 18, 2006, Rohan Dhruva wrote: export PAGER=col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' - This $PAGER definition makes the

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Rohan Dhruva
Also, IMHO, topic is a bit wrong .. this bug applies to all man pages, not only the man manpage. Regards,-- Rohan DhruvaProud GNU/Linux user.Windows: Where do you want to go today? Linux: Where do you want to go tomorrow?FreeBSD: Are you guys coming or what?http://www.dhruva.be/

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Rohan Dhruva
retitle 363250 Please clarify how $PAGER is invoked for any manpage.stopSorry for the spam, I did not know I can retitle bugs myself.-- Rohan DhruvaProud GNU/Linux user.Windows: Where do you want to go today? Linux: Where do you want to go tomorrow?FreeBSD: Are you guys coming or

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Rohan Dhruva
On 4/18/06, Loïc Minier [EMAIL PROTECTED] wrote: reassign 363250 man-db retitle 363250 please clarify in the man manpage how $PAGER is invoked stop Hi, On Tue, Apr 18, 2006, Rohan Dhruva wrote: I suggest you use: export PAGER=sh -c \col -b | view -c 'set ft=man nomod

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Adeodato Simó
* Rohan Dhruva [Tue, 18 Apr 2006 22:30:29 +0530]: view: -s option is only applicable to ex. % /usr/sbin/update-alternatives --display view | grep current -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Loïc Minier
On Tue, Apr 18, 2006, Adeodato Simó wrote: view: -s option is only applicable to ex. % /usr/sbin/update-alternatives --display view | grep current (I redirected the discussion to the bug report for the second time; FYI, it was nview.) -- Loïc Minier [EMAIL PROTECTED] You can

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

2006-04-18 Thread Henning Makholm
Scripsit Loïc Minier [EMAIL PROTECTED] I suggest you use: export PAGER=sh -c \col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' -\ which explicitely calls sh -c to handle pipes and quotes in the expected way. Policy does not really specify how to handle $PAGER and its