Improve command substitution #7

Merged
gbmor merged 2 commits from rjc/wiki:command_substitution into trunk 2023-09-05 14:50:18 +00:00
Contributor
  • .kshrc file isn't special - $ENV can point to any file

  • use $MAIL since is available by default

  • replace backticks ('``') with '$()' - they both nest and look better

  • be consistent about using [ or test - chose the latter here

  • use -n for the second test case in order to keep the examples'
    logic the same:

      [...] && echo '* '
- `.kshrc` file isn't special - `$ENV` can point to any file - use `$MAIL` since is available by default - replace backticks _('``')_ with `'$()'` - they both nest and look better - be consistent about using `[` or `test` - chose the latter here - use `-n` for the second test case in order to keep the examples' logic the same: [...] && echo '* '
rjc added 2 commits 2023-07-11 15:26:05 +00:00
4e2c82f4fb Improve command substitution
- .kshrc file isn't special - $ENV can point to any file
- use $MAIL since is available by default
- replace backticks ('`') with '$()' - they both nest and look better
- be consistent about using `[` or `test` - chose the latter here
- use `-n` for the second test case in order to keep the examples'
  logic the same:

	[...] && echo '* '
gbmor merged commit 6532e13f7a into trunk 2023-09-05 14:50:18 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: institute/wiki#7
No description provided.