#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
-scriptversion=2025-06-18.21; # UTC
+scriptversion=2025-09-20.21; # UTC
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
#
# The input.
input=$1
shift
-# We'll later need for a correct munging of "#line" directives.
+# We'll later need this for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
case $input in
[\\/]* | ?:[\\/]*)
trap "ret=143; $do_exit" 15
mkdir $dirname || exit 1
-cd $dirname
+cd $dirname || exit 1
case $# in
0) "$prog" "$input" ;;
# destination of the .y.c rule in the Makefile. Divert the
# output of all other files to a temporary file so we can
# compare them to existing versions.
- if test $from != $parser; then
+ if test "$from" != "$parser"; then
realtarget=$target
target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
fi