Re: weird behaviour with 'less'

From: Aaron Gaudio (prothonotar_at_tarnation.dyndns.org)
Date: 04/09/05

  • Next message: Aaron Gaudio: "Re: CompactFlash"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Sat, 09 Apr 2005 00:46:56 -0400
    
    

    On Fri, 2005-04-08 at 14:53 -0500, Gustavo Seabra wrote:
    > Hi all,
    >
    > I am experiencing a weird behaviour of the 'less' command. I wonder if
    > anyone else has it. It looks to me that everytime I invoke less, like
    >
    > > less somefile.txt
    >
    > it re-sources my .cshrc before executing. For example,
    >

    Check your $LESSOPEN environment variable. The default value for me is
    "|/usr/bin/lesspipe.sh %s". If you look at /usr/bin/lesspipe.sh, it's a
    (bourne) shell script. How or why this would end up executing a .cshrc,
    I don't know, but that LESSOPEN thing has caused more pain for me than
    it's helped (it never seems to work from an ssh terminal).

    At any rate, many utilities will end up having this behaviour (I suspect
    you may get the same thing trying to use /usr/bin/which). You may want
    to consider moving that stuff out of your .cshrc and into your .login
    file, so it only gets executed on login shells.

    -- 
    Aaron Gaudio <prothonotar@tarnation.dyndns.org>
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Aaron Gaudio: "Re: CompactFlash"

    Relevant Pages

    • Re: Not entirely OT: RSHELL to Solaris
      ... > Andrew Harrison SUNUK Consultancy wrote: ... remotely execute the shell script on the Sun from ... OpenVMS form inside something like DCL. ... the OpenVMS user executing the remote command. ...
      (comp.os.vms)
    • Re: [kde-linux] Please Help!
      ... executing a shell script program? ... you could add an association to the mime type ... paste text into the konsole window and the shell script would see it on ... New GPG Key! ...
      (KDE)
    • Re: Execute all files and log outputs
      ... The log file should have the ... I think we need to exclude the shell script itself, ... otherwise it'll forever executing itself. ... # Create outputs directory if it doesn't exit ...
      (comp.unix.shell)
    • Re: fork/execv - how to get errno to the parent
      ... none of the exec functions do. ... It is a shell script. ... /bin/sh to be executed - it is executing a shell script that doesn't ... The execlp and execvp library functions are required to search the PATH. ...
      (comp.os.linux.development.apps)