Martijn Dekker dixit:
>http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_25
>| 2. The -e setting shall be ignored when executing the compound list
>| following the while, until, if, or elif reserved word, a pipeline
>| beginning with the ! reserved word, or any comman
There seems to be a POSIX issue with 'set -e' ('set -o errexit') on mksh.
The script:
set -e
! false && false
echo wrong
should not output anything, which is the actual behaviour on every shell
except pdksh and mskh.
This only occurs if the command starts with a '!'. The following s
Op 01-10-16 om 20:03 schreef Antoni V.:
> I use a command many times on a day to check what programs are using internet.
> netstat -lantp | grep -i stab | awk -F/ '{print $2 $3}' | sort | uniq
> Then I thought of making a shortcut for it called 'using'.
> I can think of 2 ways.
>
> 1- add it to .m
On Sat, Oct 01, 2016 at 09:03:15PM +0200, Antoni V. wrote:
Hi,
> netstat -lantp | grep -i stab | awk -F/ '{print $2 $3}' | sort | uniq
>
>[…]
>
> 1- add it to .mkshrc as \alias using=
> 2- create /usr/bin/using (chmod +x) and add the one liner to it
>
> Both will work the exact same way.
> So I