From 11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 6 Dec 2023 22:31:27 +0100 Subject: c --- root/.bash_aliases | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'root') diff --git a/root/.bash_aliases b/root/.bash_aliases index d7730ea..56c4e9e 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -20,7 +20,12 @@ function kladivo () { iptables -A INPUT -s $1 -j DROP } function c () { - gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security $@ -lm + fn=$@ + for arg in $@ + do + grep ^- <<<$arg > /dev/null && fn=$arg + done + gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security -o`rev <<<$arg | cut -d. -f2- | rev` $@ -lm } alias pmbootstrap="pmbootstrap --as-root" HISTCONTORL=ignoreboth -- cgit v1.2.3