summaryrefslogtreecommitdiff
path: root/Userland/Utilities/pwd.cpp
blob: 15c639df73f5f555f99cb3b5a1a3eeceb400e38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <AK/DeprecatedString.h>
#include <AK/Format.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>

ErrorOr<int> serenity_main(Main::Arguments)
{
    TRY(Core::System::pledge("rpath stdio"));
    outln(TRY(Core::System::getcwd()));
    return 0;
}