you are missing the '%' neede before the job number. Use

fg `jobs | awk '/xemacs/ {printf("%%%s\n", substr($1, 2, 1));}'`

The extra '%' is to escape the oher.

hth
charles

On Mon, 6 Nov 2000, Mulcahy, Chris wrote:

> Apologies for the HTML the first time around.  It was truly a mistake.
> ---
> Greetings all!
> 
> Any idea why this (line wrapping probable):
> 
> ---> SNIP <---
> #/bin/bash
> fg `jobs | awk '/xemacs/ {printf("%s\n", substr($1, 2, 1));}'`
> ---> SNIP <---
> 
> returns:
> ---> SNIP <---
> fg: no job control
> ---> SNIP <---
> 
> instead of switching me to the currently running xemacs session?
> 
> Thanks!
> Chris
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to