Re: OpenSSH 7.7 t1 script breakage

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On 13/04/18 07:59, Josh Soref wrote:
Randall S. Becker <rsbecker@xxxxxxxxxxxxx> wrote:

-REGRESSTMP = "$(PWD)/regress"
+REGRESSTMP = `pwd`

  tests interop-tests t-exec unit: regress-prep regress-binaries $(TARGETS)

It looks like the problem is that pwd is in uppercase, not so much the
distinction between $() and ``.

Can you confirm?

I think not.  $(PWD) is a valid expansion of a shell variable when using bash, maybe also Bourne shell, whereas `pwd` is the output of the pwd command.

There seems to be muddled-headed thinking going on with scripts. Recently there was a configure problem because of a difference between csh and sh.  (As I recall, csh exits the script when you use an undefined variable, whereas the various sh shells interpolate an empty string.)  It is madness to think you can take a program that was written for one language and run it using another.  I understand that a lot of unixy shells are very similar, and that if you take great care you really can run a script in all of them, but, if that is what is intended, then there should be a document that describes which features are allowed to be used and which are not; better yet, a program to validate the scripts.

I think, better yet, is to mandate use of a specific shell.  The bash shell might be the most widely available.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux