> I know I can use > > xterm -e sh -c 'command;echo Type Control-d to close window;cat' > > to invoke a predefined command, Now, how to make it into a sh > function so that I can use any arbitrary commands? > > I've tried to come up with the following, but none of them works: > > testit(){ xterm -e sh -c "'$@;echo Type Control-d to close window;cat'" & }
testit(){ xterm -e sh -c "$*;echo Type Control-d to close window;cat" & }
Manfred Bartz