Skip to article
← Dave Cheney's Blog
Open in Preserve Reader
Post · 1 min read· p. 30

Bash trick ‘o the day

Dave Cheney's Blog · Dave Cheney · 1 min

Bash supports the += operator

text
% echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
% PATH+=:$HOME/bin
% echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/dave/bin
← Previous A new take on artificial scarcity Next → Using Clang 2.9 to build Google Go