Skip to content

Linux - Powershell 7 - linux commands should not truncate results by default  #13513

@nddipiazza

Description

@nddipiazza

Steps to reproduce

Run a command that will need to word wrap in your terminal:

ps aux

Expected behavior

should not truncate the commands, just like if you ran it in normal linux terminal emulator

ndipiaz+ 2473076 22.5  6.2 96664472 4094576 ?    Sl   11:48  52:03 /home/ndipiazza/Downloads/idea-IC-191.8026.42/jre64/bin/java -classpath /home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/bootstrap.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/extensions.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/util.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/jdom.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/log4j.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/trove4j.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/lib/jna.jar:/home/ndipiazza/Downloads/idea-IC-191.8026.42/jre64/lib/tools.jar -Xms128m -Xmx4750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -XX:ErrorFile=/home/ndipiazza/java_error_in_IDEA_%p.log -XX:HeapDumpPath=/home/ndipiazza/java_error_in_IDEA.hprof -Didea.paths.selector=IdeaIC2019.1 -Djb.vmOptionsFile=/home/ndipiazza/.IdeaIC2019.1/config/idea64.vmoptions -Didea.platform.prefix=Idea -Didea.jre.check=true com.intellij.idea.Main

Actual behavior

it truncated things:

ndipiaz+ 2473418  0.1  0.3 4113528 217760 ?      Sl   11:50   0:16 /home/ndipiazza/Downloads/idea-IC-191.8026.42/jre64/bin/java -Djava.awt.headless=true -Didea.version==2019.1.4 -Xmx76

This is not what a linux terminal user sees by default when using other shells. It should default to the same as any other linux terminal in this respect. This makes it harder to transition to using powershell as your main shell.

Environment data

Ubuntu + Gnome 20.04.1

Same thing happens on xterm, terminal emulator, and terminator.

Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Linux 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.3}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-ExternalThe issue is caused by external component(s).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions