default profile does not evaluate 'lesspipe'

Bug #8504 reported by leon breedt
4
Affects Status Importance Assigned to Milestone
base-files (Ubuntu)
Fix Released
Wishlist
Matthias Klose

Bug Description

the default shell profile does not eval the 'lesspipe' command, causing 'less
<filename>.gz' to display binary junk instead of filtering it through gzip.

perhaps this could be changed in /etc/profile or in the
/etc/skel/.bash{rc,_profile} provided by bash to improve the initial user
experience.

Revision history for this message
Matt Zimmerman (mdz) wrote :

This seems reasonable, as long as it is implemented in such a way that it does
not break if lesspipe is not available

Revision history for this message
leon breedt (bitserf+bugzilla) wrote :

a better way to implement this than directly in /etc/profile would
probably be something similar to the /etc/profile.d shipped by Red
Hat, containing *.sh, and *.csh files, and /etc/profile sources *.sh.
the less package would then provide a file in /etc/profile.d that
evaluates lesspipe.

however, i'm not sure if this is too divergent from Debian proper?

Revision history for this message
Matt Zimmerman (mdz) wrote :
Revision history for this message
Matt Zimmerman (mdz) wrote :

Apparently, some other popular distributions enable this functionality by default.

Revision history for this message
Matthias Klose (doko) wrote :

Enabled in the skeleton .bashrc file. Do we really want these
same additions in the system files?

Revision history for this message
Matthias Klose (doko) wrote :

Enabled in the skeleton .bashrc file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.