Skip to main content

Timeline for Tips for golfing in Bash

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Jun 29, 2017 at 15:49 history edited Digital Trauma CC BY-SA 3.0
added 35 characters in body
Jan 19, 2017 at 4:58 comment added Evan Krall for((;i++<10)){ echo $i;} is shorter than for i in {1..10};{ echo $i;}
Dec 23, 2015 at 20:08 comment added mikeserv by the way, in ksh93 the above thing could be :;{1..10}, and in bash: printf %s\\n {1..10}
Dec 23, 2015 at 20:02 comment added mikeserv ahh... csh, probably - that's how they worked in that shell.
Dec 23, 2015 at 19:57 comment added Digital Trauma @mikeserv Bash. I remember reading somewhere that this syntax was allowed in some old sh and that Bash also allows it because of that, though sadly I don't have a citation.
Dec 23, 2015 at 19:55 comment added mikeserv what shell is the is sh and what shell allows this for syntax? it is expressly allowed in zsh.
Jul 22, 2015 at 3:18 history edited Digital Trauma CC BY-SA 3.0
added 7 characters in body
Feb 20, 2015 at 2:55 history wiki removed Doorknob
Apr 13, 2014 at 4:14 history answered Digital Trauma CC BY-SA 3.0