Workspace Manager Menus - dtwmrc file

When I execute this command:

exec xterm �e $SHELL �c �sed �n 4p /folder1/folder2/folder3/file.dat; $SHELL�

I have the expecting result: It opens an new terminal, it shows the 4th line of the file and the terminal window stays open perfect.

So I tried to write it in the dtwmrc file to have an extra line in the Workspace Manager Menus to execute this command. I add this line in the dtwmrc file:

�The 4th line is� f.exec xterm �e $SHELL �c �sed �n 4p /folder1/folder2/folder3/file.dat; $SHELL�

But the problem is when I click on the menu �The 4th line is�, it opens a terminal and shows nothing.

I expected to have:

�content of the 4th line�
WkOps: /export/home/user $ _

But I only have

WkOps: /export/home/user $ _

I work on Solaris 10

Damien

The CDE dtwmrc wants word f.exec word
If you have multi-word you must put normal quotes around them "w1 w2" f.exec "w3 w4" .
Now you have the problem of quotes inside quotes.
Fortunately the shell accepts single-quotes, and in this case you can use them as well.

"The 4th line is" f.exec "xterm -e $SHELL -c 'sed -n 4p /folder1/folder2/folder3/file.dat; $SHELL'"