1*3d4e20a2SAndy Fiddaman#!/usr/bin/ksh 2*3d4e20a2SAndy Fiddaman# 3*3d4e20a2SAndy Fiddaman# This file and its contents are supplied under the terms of the 4*3d4e20a2SAndy Fiddaman# Common Development and Distribution License ("CDDL"), version 1.0. 5*3d4e20a2SAndy Fiddaman# You may only use this file in accordance with the terms of version 6*3d4e20a2SAndy Fiddaman# 1.0 of the CDDL. 7*3d4e20a2SAndy Fiddaman# 8*3d4e20a2SAndy Fiddaman# A full copy of the text of the CDDL should have accompanied this 9*3d4e20a2SAndy Fiddaman# source. A copy of the CDDL is also available via the Internet at 10*3d4e20a2SAndy Fiddaman# http://www.illumos.org/license/CDDL. 11*3d4e20a2SAndy Fiddaman# 12*3d4e20a2SAndy Fiddaman 13*3d4e20a2SAndy Fiddaman# 14*3d4e20a2SAndy Fiddaman# Copyright 2026 Oxide Computer Company 15*3d4e20a2SAndy Fiddaman# 16*3d4e20a2SAndy Fiddaman 17*3d4e20a2SAndy Fiddaman# 18*3d4e20a2SAndy Fiddaman# A shell stage is joined to the following dcmd with |, never a second !. 19*3d4e20a2SAndy Fiddaman# Using ! as the separator is rejected: ! already begins a shell escape, and 20*3d4e20a2SAndy Fiddaman# shell commands can legitimately contain !. 21*3d4e20a2SAndy Fiddaman# 22*3d4e20a2SAndy Fiddaman 23*3d4e20a2SAndy Fiddamanexport SHELL=/bin/sh 24*3d4e20a2SAndy Fiddaman 25*3d4e20a2SAndy Fiddaman$MDB -e "::echo 1 2 3 ! 'cat' ! ::map ." 26*3d4e20a2SAndy Fiddamanexit $? 27