On Sat, 23 Feb 2002, Jan Schaumann wrote: > cthulhain <[EMAIL PROTECTED]> wrote: > > please change #!/bin/sh at the top of your script to #!/bin/bash > because > > of the following: > > > > WINDOW_IDS=(`xlsclients -l | grep Window | sed s/"Window "// | sed > s/://`) > > I'd rather see it adjusted to work with "/bin/sh" than having it require > bash. Some systems don't have (or want) bash. > > I'm no sh-wiz, but wouldn't > > WINDOW_IDS=`xlsclients -l | grep Window | sed s/"Window "// | sed s/://` > > work in /bin/sh work?
It should, but I would place it inside double-quotes, because more than one continous string is involved. (continous: without spaces or newlines) --gile -- Not sent to the original poster because they already read the mailing list...
