[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

jobs listing works poorly with functions with parameters

From: israel
Subject: jobs listing works poorly with functions with parameters
Date: Thu, 29 Dec 2005 16:58:55 -0500 (EST)

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux home 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 
Machine Type: i486-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

when a background or stopped process was started by a function with
arguments, then the arguments are not explicitly listed in the jobs
output, but instead the jobs output shows the defined patterns, such
as $@, $*, $1, $2 ...


Define a function with an argument, call it, ^Z the process, then
list jobs.  e.g.

$ le() { less -E "$@" ; }
$ le /etc/termcap
[ CTRL-Z the 'less' job. ]
[1]+  Stopped                 less -E "$@"
$ jobs
[1]+  Stopped                 less -E "$@"

This should instead say
[1]+  Stopped                 less -E /etc/termcap

reply via email to

[Prev in Thread] Current Thread [Next in Thread]