def sh_prepare(variables, export=False):
 out = []
 export = ('export ' if export else '')
 for (k, v) in variables.items():
  out.append(('%s%s=%s' % (export, k, sh_string(v))))
 return ';'.join(out)

def sh_prepare ( variables , export = False ) : out = [ ] export = ( 'export ' if export else '' ) for ( k , v ) in variables . items ( ) : out . append ( ( '%s%s=%s' % ( export , k , sh_string ( v ) ) ) ) return ';' . join ( out )
outputs a posix compliant shell command that will put the data specified by the dictionary into the environment .