aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-26 15:27:39 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-26 15:27:39 -0700
commitcf766b55cca979745f6c218d78f9cdcc297b3f20 (patch)
treed5c31f6aaa56aaa4ac7c967c91d6e822d0f8d27d /parser.cpp
parent03c65d7a96c9cadc9feff339ca0af7f43eb7391e (diff)
Fix formatting
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/parser.cpp b/parser.cpp
index 72b46c9f..1228fb2c 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -2013,7 +2013,7 @@ int parser_t::parse_job(process_t *p,
{
const wchar_t *cmd = args.at(0).completion.c_str();
-
+
/*
We couldn't find the specified command.
@@ -2036,20 +2036,20 @@ int parser_t::parse_job(process_t *p,
if (equals_ptr != NULL)
{
/* Try to figure out if this is a pure variable assignment (foo=bar), or if this appears to be running a command (foo=bar ruby...) */
-
+
const wcstring name_str = wcstring(cmd, equals_ptr - cmd); //variable name, up to the =
const wcstring val_str = wcstring(equals_ptr + 1); //variable value, past the =
-
+
wcstring next_str;
if (tok_peek_next(tok, &next_str) == TOK_STRING && ! next_str.empty())
{
wcstring ellipsis_str = wcstring(1, ellipsis_char);
if (ellipsis_str == L"$")
ellipsis_str = L"...";
-
+
/* Looks like a command */
debug(0,
- _( L"Unknown command '%ls'. Did you mean to run %ls with a modified environment? Try 'env %ls=%ls %ls%ls'. See the help section on the set command by typing 'help set'."),
+ _(L"Unknown command '%ls'. Did you mean to run %ls with a modified environment? Try 'env %ls=%ls %ls%ls'. See the help section on the set command by typing 'help set'."),
cmd,
next_str.c_str(),
name_str.c_str(),