* screen: count args, rather than checking their contents

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-04-27 17:58:27 -05:00
commit 395e41d118

2
screen
View file

@ -78,7 +78,7 @@ fi
[ -r "$SCREENRC" ] || touch "$SCREENRC" [ -r "$SCREENRC" ] || touch "$SCREENRC"
# Now let's execute screen! # Now let's execute screen!
if [ -z "$@" ]; then if [ "$#" = "0" ]; then
exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" -t shell /usr/bin/motd+shell exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" -t shell /usr/bin/motd+shell
else else
exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@" exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@"