Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
q3k
on May 29, 2014
|
parent
|
context
|
favorite
| on:
Defensive Bash programming
And yet he pipes from ls...
_pvxk
on May 29, 2014
|
next
[–]
And all those functions wrapping [[, ugh.
maybe I should start doing this in Python
def plus (a,b): return a+b
obiterdictum
on May 29, 2014
|
prev
[–]
What is wrong with piping `ls`?
dockd
on May 29, 2014
|
parent
|
next
[–]
It's usually redundant. for i in * <--> for i in `ls`
massysett
on May 29, 2014
|
parent
|
prev
|
next
[–]
Usually it is more pristine (from a theoretical standpoint) to use filename generation, aka globbing. You don't need a subprocess.
q3k
on May 29, 2014
|
parent
|
prev
[–]
http://mywiki.wooledge.org/ParsingLs
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: