steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

install script steam{,.sh} is not POSIX compliant

Open hasufell opened this issue 13 years ago • 5 comments

It would be a portability improvement to make the install scripts posix compliant without forcing a particular shell (in this case bash).

proposing patch: https://gist.github.com/6d85b0c4d234641fc112

for references about bashisms, see: http://mywiki.wooledge.org/Bashism https://wiki.ubuntu.com/DashAsBinSh

you can check for bashisms with this popular perl script: http://sourceforge.net/projects/checkbaskisms/

hasufell avatar Jan 09 '13 14:01 hasufell

I see you're using $() in a number of places. That is itself a bashism; you should use backticks (`) instead.

velociostrich avatar Jan 11 '13 02:01 velociostrich

afais $() is defined in POSIX http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03

however, it would probably be fine to fix it to `` syntax although I remember there are slight differences, will test that first

hasufell avatar Jan 11 '13 21:01 hasufell

How about that. I swear there was a version of dash (FOSS sh implementation) whose man page did not list $(). Either I'm mistaken or there was in fact a version of dash that lacked $(). (Which would not have made dash POSIX compliant, and I just incorrectly assumed that it's man page was in line with POSIX.)

velociostrich avatar Jan 11 '13 23:01 velociostrich

It seems to be invalid syntax in "tcsh"... seems that this shell is not posix compliant after all.

hasufell avatar Jan 12 '13 00:01 hasufell

No action here, no interest in redoing, bye.

hasufell avatar May 24 '16 14:05 hasufell