From a0eacf4607f0262f6c3bb6ddf84113253b76d477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 21 Oct 2020 08:18:39 +0200 Subject: Add an installation script Copying snippets from the README was uncomfortable and laborious, and wasted a lot of space in the document, especially after the recent additions. Closes #3 --- sdn.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'sdn.cpp') diff --git a/sdn.cpp b/sdn.cpp index ff1e397..5222df8 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -1717,6 +1717,7 @@ int main (int argc, char *argv[]) { // We can't portably create a standard stream from an FD, so modify the FD dup2 (output_fd, STDOUT_FILENO); + // TODO: avoid printing any of this unless the SDN envvar is set if (g.cwd != g.start_dir && !g.no_chdir) cout << "local cd=" << shell_escape (g.cwd) << endl; else -- cgit v1.2.3