Hi,
(GNU bash, version 2.05b.0(1)-release (i586-mandrake-linux-gnu).)
Is it possible, in the above version of BASH, to have (a) command
substitution(s) within (a) parameter substitution(s)? I tried the
following in a BASH script:
gqview ${$( cat $HOME/mydisplay_return )#*\ }
and it didn't work. The above code line was to execute GQview (an image
viewer) with the name of an image file that was stored, on it's own, in a
file called 'mydisplay_return', hence the 'cat' command to get at the image
file name. The file name stored in the 'mydisplay_return' file was
prefixed with an identifying number followed by a space, hence the '#*\ '
parameter substitution to just leave the file name. But it doesn't work.
What's wrong?
Yours,
Gary Hayward.