3 ms·
joey@darkstar:~>touch true joey@darkstar:~>chmod +x true joey@darkstar:~>ls -l true -rwxr-xr-x 1 joey joey 0 Nov 18 10:53 true* joey@darkstar:~>
by joeyh 10y ago
joey@darkstar:~>touch true
joey@darkstar:~>chmod +x true
joey@darkstar:~>ls -l true
-rwxr-xr-x 1 joey joey 0 Nov 18 10:53 true*
joey@darkstar:~>if ./true; then echo yay; fi
yay
Just saying.
- deleted 10y ago[deleted]
- aexaey 10y agoAlso, you don't actually need a "true" binary for a shell of any reasonable vintage: # which true /usr/bin/which: no true in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) # true; echo $? 0