Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh

From: David Kastrup <hidden>
Date: 2016-06-15 22:43:36

Eygene Ryabinkin [off-list ref] writes:
quoted
That is, what does the shell say if you do this?

	case Ultra in
        Super)
        	false ;;
	Hyper)
        	true ;;
	esac &&
        echo case returned ok
It says 'case returned ok', so I will try to understand why it
works here and does not work in the 'while' construct.
What you actually need to do is

false
case Ultra in
   Super)
   	false ;;
Hyper)
   	true ;;
esac && echo case returned ok


-- 
David Kastrup
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help