Opened 10 years ago

Last modified 10 years ago

#96 new defect

cereal attach fails if there are other sessions named similarly

Reported by: Daniel Kahn Gillmor Owned by: jrollins
Priority: major Component: cereal
Keywords: cereal screen Cc:
Sensitive: no


If you have two cereal sessions, and one has a name that completely containst the name of the other, when you try to attach to the shorter name, screen gives you an unpleasant failure:

0 splat-console@cur:~$ cereal list
+af splat /dev/ttyS2 115200 splat-console splat-console
+af splat2 /dev/ttyS3 115200 splat-console splat-console
0 splat-console@cur:~$ cereal attach splat
There are several suitable screens on:
	4360.cereal:splat2	(11/09/2008 06:33:01 AM)	(Detached)
	3897.cereal:splat	(11/09/2008 06:31:12 AM)	(Detached)
Type "screen [-d] -r [pid.]" to resume one of them.
Could not reattach screen.
2 splat-console@cur:~$ 

Change History (3)

comment:1 Changed 10 years ago by jrollins

So best I can tell, this is a bug in screen. I can reproduce this bug completely independently of cereal. It's almost as if it's just doing a plane grep for "SESSION" instead of "SESSION$" against the list of session names. I guess we need to file a bug against screen.

comment:2 in reply to:  1 Changed 10 years ago by jrollins

Replying to jrollins:

sorry, should have previewed that last entry. Should be grep against "^SESSION$" instead of just "SESSION".

comment:3 Changed 10 years ago by Daniel Kahn Gillmor

Looks like DebianBug:361274 which is in theory fixed upstream.

Note: See TracTickets for help on using tickets.