diff options
author | epochqwert <epoch@hacking.allowed.org> | 2015-08-19 20:47:05 -0500 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2015-08-19 20:47:05 -0500 |
commit | 9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1 (patch) | |
tree | 3a8fe9be12ee7088de99d2bb98e828cd472ff8e3 /chat/chat.sh | |
parent | 3cb90cc19cc95bcea41845de4555e79bdd34b161 (diff) | |
download | segfault_home-9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1.tar.gz segfault_home-9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1.zip |
save point.
Diffstat (limited to 'chat/chat.sh')
-rwxr-xr-x | chat/chat.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chat/chat.sh b/chat/chat.sh new file mode 100755 index 0000000..f203228 --- /dev/null +++ b/chat/chat.sh @@ -0,0 +1,15 @@ +#!/usr/pkg/bin/perl +chdir("/home/segfault/chat"); +my $sentence=""; +my $i=0; +@words=split(/ /,join(" ",@ARGV)); +foreach(@words) { + if(!chdir($_)) { + $args=join(" ",@words[$i .. $#words]); + $args =~ s/'/'\\''/g; + system("./_ '" . $args . "'\n"); + exit; + } + $i++; +} +system("./_"); |