helpThe GNU Bourne-Again SHell - Support: sr #108616, "jobs" shows 'less...


sr #108616: "jobs" shows 'less "$@"' rather than actual argument with function

Submitted by:  None
Submitted on:  Tue 15 Jul 2014 07:13:58 PM UTC  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue 15 Jul 2014 07:13:58 PM UTC, original submission:

I have an abbreviation "le" for the "less" command (just to save
typing). I originally I had this as a shell function, but I found that
stopped jobs showed up in the "jobs" output as 'less "$@"' rather than
showing the actual argument. Changing it to an alias avoids that problem
(but is obviously less flexible).

A demonstration (for simplicity I'm using sleep rather than less):



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #31725:  bash-bug.txt added by None (670B - text/plain - Demonstration of bug (didn't show up in original submission))


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 15 Jul 2014 07:17:48 PM UTCNoneAttached File-=>Added bash-bug.txt, #31725

    Back to the top

    Powered by Savane 3.1-cleanup