···225225 msh: cannot overwrite existing file
226226 world
227227228228+Also errexit examples from the specification.
229229+230230+ $ sh -c "set -e; (false; echo one) | cat; echo two"
231231+ two
232232+ $ msh -c "set -e; (false; echo one) | cat; echo two"
233233+ two
234234+ $ sh -c "set -e; echo $(false; echo one) two"
235235+ one two
236236+ $ msh -c "set -e; echo $(false; echo one) two"
237237+ one two
238238+2282392.7 Sequences
229240230241A simple, semicolon sequence.
+12-1
vendor/morbig.0.11.0/src/prelexerState.ml
···26262727and quote_kind = SingleQuote | DoubleQuote | OpeningBrace
28282929+let pp_atom ppf = function
3030+ | AssignmentMark -> Format.fprintf ppf "|=|"
3131+ | ArithmeticMark -> Format.fprintf ppf "|+|"
3232+ | QuotingMark _ -> Format.fprintf ppf "\""
3333+ | WordComponent (c, _) -> Format.fprintf ppf "%s" c
3434+2935module AtomBuffer : sig
3036 type t
3137 val get : t -> atom list
···317323318324let recognize_assignment current =
319325 let rhs, prefix = take_until is_assignment_mark (buffer current) in
320320- if prefix = buffer current then (
326326+ let is_empty_assignment =
327327+ match rhs, prefix with
328328+ | [], AssignmentMark :: _ -> true
329329+ | _ -> false
330330+ in
331331+ if prefix = buffer current && not is_empty_assignment then (
321332 current
322333 ) else
323334 let buffer = AtomBuffer.make (rhs @ List.tl prefix) in