On 2/24/09 11:51 AM, "Chris Henderson" <henders...@gmail.com> wrote:

> Out of curiosity: would anyone know what these "${1...@}" ssh "$@"; means?

$@ is sh for the entire arg array, and ${1...@} is for "the first arg
string, removing up to and including the first '@' char".  see the bash man
page section on parameter expansion.  so 'ssh k...@yourhost.com' -> 'screen
-t "yourhost.com" ssh "k...@yourhost.com"'.  of course, if you use different
usernames, maybe you don't want to remove that.

and also, this is pretty cool. i'm probably going to use it or some variant,
thanks!

-k




_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to