Like the Drosophila embryo, the abdomen of the adult consists of alternating anterior (A) and posterior (P) compartments. However the wing is made by only part of one A and part of one P compartment. The abdomen therefore offers an opportunity to compare two compartment borders (A/P is within the segment and P/A intervenes between two segments), and ask if they act differently in pattern formation. In the embryo, abdomen and wing P compartment cells express the selector gene engrailed and secrete Hedgehog protein whilst A compartment cells need the patched and smoothened genes in order to respond to Hedgehog. We made clones of cells with altered activities of the engrailed, patched and smoothened genes. Our results confirm (1) that the state of engrailed, whether 'off' or 'on', determines whether a cell is of A or P type and (2) that Hedgehog signalling, coming from the adjacent P compartments across both A/P and P/A boundaries, organises the pattern of all the A cells. We have uncovered four new aspects of compartments and engrailed in the abdomen. First, we show that engrailed acts in the A compartment: Hedgehog leaves the P cells and crosses the A/P boundary where it induces engrailed in a narrow band of A cells. engrailed causes these cells to form a special type of cuticle. No similar effect occurs when Hedgehog crosses the P/A border. Second, we look at the polarity changes induced by the clones, and build a working hypothesis that polarity is organised, in both compartments, by molecule(s) emanating from the A/P but not the P/A boundaries. Third, we show that both the A and P compartments are each divided into anterior and posterior subdomains. This additional stratification makes the A/P and the P/A boundaries fundamentally distinct from each other. Finally, we find that when engrailed is removed from P cells (of, say, segment A5) they transform not into A cells of the same segment, but into A cells of the same parasegment (segment A6).