summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-04-06 22:04:02 +0100
committerFranklin Wei <frankhwei536@gmail.com>2014-04-06 22:04:02 +0100
commit8200cce66420b646b690ba191e755c1ecf4414bd (patch)
tree6a1bd1521e5270b51567a7a15d83c6446afeb108
parent812f81f973cafd94e9d1caafad7b8226776d2566 (diff)
downloadpish-8200cce66420b646b690ba191e755c1ecf4414bd.zip
pish-8200cce66420b646b690ba191e755c1ecf4414bd.tar.gz
pish-8200cce66420b646b690ba191e755c1ecf4414bd.tar.bz2
pish-8200cce66420b646b690ba191e755c1ecf4414bd.tar.xz
Added print of pwd
-rw-r--r--parse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.cpp b/parse.cpp
index a0f0300..875ad40 100644
--- a/parse.cpp
+++ b/parse.cpp
@@ -96,7 +96,8 @@ void pish_parse(const string& str)
{
dash();
usleep(250000);
- char* pwd=getcwd(0,0);
+ char* pwd=getcwd(0,0); // is this extension Linux only?
+ cout << pwd << endl;
transmit(string(pwd));
free(pwd);
usleep(25000);