René's URL Explorer Experiment


Title: When input prompt starts with '-': /bin/bash: line 1: history: -1: invalid option · Issue #75 · wp-cli/shell-command · GitHub

Open Graph Title: When input prompt starts with '-': /bin/bash: line 1: history: -1: invalid option · Issue #75 · wp-cli/shell-command

X Title: When input prompt starts with '-': /bin/bash: line 1: history: -1: invalid option · Issue #75 · wp-cli/shell-command

Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior Type something that starts with -, i.e. -1: wp> -1 /bin/bas...

Open Graph Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior Type something that...

X Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior Type something that...

Opengraph URL: https://github.com/wp-cli/shell-command/issues/75

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"When input prompt starts with '-': /bin/bash: line 1: history: -1: invalid option","articleBody":"## Bug Report\n\n- [ ] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\n- [ ] Yes, more specifically, I reviewed the guidelines on [how to write clear bug reports](https://make.wordpress.org/cli/handbook/bug-reports/).\n\n**Describe the current, buggy behavior**\n\nType something that starts with `-`, i.e. `-1`:\n\n```\nwp> -1\n/bin/bash: line 1: history: -1: invalid option\nhistory: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]\n=> int(-1)\n```\n\n**Describe how other contributors can replicate this bug**\n\n```\n$ wp shell\nwp> -1\n/bin/bash: line 1: history: -1: invalid option\nhistory: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]\n=> int(-1)\n```\n\n**Describe what you would expect as the correct outcome**\n\nIf it's negative number in PHP, it should evaluate to negative number:\n\n```\nwp> -1\n=> int(-1)\n```\n\n**Let us know what environment you are running this on**\n\n```\nOS:\tLinux 5.10.0-31-amd64 #1 SMP Debian 5.10.221-1 (2024-07-14) x86_64\nShell:\t/bin/bash\nPHP binary:\t/usr/local/php8.3/bin/php\nPHP version:\t8.3.24\nphp.ini used:\t/usr/local/php8.3/conf/php.ini\nMySQL binary:\t/usr/bin/mariadb\nMySQL version:\tmariadb  Ver 15.1 Distrib 10.5.29-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper\nSQL modes:\tERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///usr/local/bin/wp\nWP-CLI packages dir:\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t/chroot/var/www/config/wp-cli.yml\nWP-CLI project config:\nWP-CLI version:\t2.12.0\n```\n\n**Provide a possible solution**\n\nLikely the input prompt in https://github.com/wp-cli/shell-command/blob/main/src/WP_CLI/Shell/REPL.php#L135-L144 need to be escaped?\n\nJust leave this section out if you don't know how to fix it.\n\n**Provide additional context/Screenshots**\n\nAdd any other context about the problem here.\n\nIf applicable, add screenshots to help explain (you can just drag&drop images into the Github issue).\n","author":{"url":"https://github.com/gedex","@type":"Person","name":"gedex"},"datePublished":"2025-08-20T10:02:40Z","url":"https://github.com/wp-cli/shell-command/issues/75"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0a953b0f-8190-81c5-b428-8a724fd6f075
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA138:1EDECA:51A703A:6BD8CE0:6AFA23F7
html-safe-nonceb38ce7ce1ddd51de6577e58785ffb7accf1cae65ef5ab41b0d3f0a51fa8795af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTM4OjFFREVDQTo1MUE3MDNBOjZCRDhDRTA6NkFGQTIzRjciLCJ2aXNpdG9yX2lkIjoiMzY1NzkyODM3MjUzODQ1MDkzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac55264fa47a2ed2cd27ae87758986f3c7c1246c9d0a857915568e382ec43ab5ff
hovercard-subject-tagissue:3337439387
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/shell-command/75/issue_layout
twitter:imagehttps://opengraph.githubassets.com/978dc4efae4cd7ce9c8f9ef0cd0332b758b6febd31a6b31a7d23bdb970809a2a/wp-cli/shell-command/issues/75
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/978dc4efae4cd7ce9c8f9ef0cd0332b758b6febd31a6b31a7d23bdb970809a2a/wp-cli/shell-command/issues/75
og:image:altBug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior Type something that...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegedex
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/wp-cli/shell-command git https://github.com/wp-cli/shell-command.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id85307675
octolytics-dimension-repository_nwowp-cli/shell-command
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id85307675
octolytics-dimension-repository_network_root_nwowp-cli/shell-command
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/wp-cli/shell-command/issues/75#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fshell-command%2Fissues%2F75
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fshell-command%2Fissues%2F75
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=wp-cli%2Fshell-command
Reloadhttps://github.com/wp-cli/shell-command/issues/75
Reloadhttps://github.com/wp-cli/shell-command/issues/75
Reloadhttps://github.com/wp-cli/shell-command/issues/75
wp-clihttps://github.com/wp-cli
shell-commandhttps://github.com/wp-cli/shell-command
Codehttps://github.com/wp-cli/shell-command
Issueshttps://github.com/wp-cli/shell-command/issues
Pull requestshttps://github.com/wp-cli/shell-command/pulls
Actionshttps://github.com/wp-cli/shell-command/actions
Security and qualityhttps://github.com/wp-cli/shell-command/security
Insightshttps://github.com/wp-cli/shell-command/pulse
https://github.com/wp-cli/shell-command
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/shell-command/issues/75
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/shell-command/issues/75
Bughttps://github.com/wp-cli/shell-command/issues?q=type:"Bug"
#78https://github.com/wp-cli/shell-command/pull/78
When input prompt starts with '-': /bin/bash: line 1: history: -1: invalid optionhttps://github.com/wp-cli/shell-command/issues/75#top
#78https://github.com/wp-cli/shell-command/pull/78
https://github.com/copilot-swe-agent
command:shellRelated to 'shell' commandhttps://github.com/wp-cli/shell-command/issues?q=state%3Aopen%20label%3A%22command%3Ashell%22
https://github.com/gedex
gedexhttps://github.com/gedex
on Aug 20, 2025https://github.com/wp-cli/shell-command/issues/75#issue-3337439387
contribution guidelineshttps://make.wordpress.org/cli/handbook/contributing/
how to write clear bug reportshttps://make.wordpress.org/cli/handbook/bug-reports/
https://github.com/wp-cli/shell-command/blob/main/src/WP_CLI/Shell/REPL.php#L135-L144https://github.com/wp-cli/shell-command/blob/main/src/WP_CLI/Shell/REPL.php#L135-L144
swissspidyhttps://github.com/swissspidy
command:shellRelated to 'shell' commandhttps://github.com/wp-cli/shell-command/issues?q=state%3Aopen%20label%3A%22command%3Ashell%22
on Nov 3, 2025https://github.com/wp-cli/shell-command/issues/75#event-20676386070
swissspidyhttps://github.com/swissspidy
Bughttps://github.com/wp-cli/shell-command/issues?q=type:"Bug"
on Nov 3, 2025https://github.com/wp-cli/shell-command/issues/75#event-20676389814
swissspidyhttps://github.com/swissspidy
Copilothttps://github.com/apps/copilot-swe-agent
on Nov 3, 2025https://github.com/wp-cli/shell-command/issues/75#event-20676398109
swissspidyhttps://github.com/swissspidy
completedhttps://github.com/wp-cli/shell-command/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#78https://github.com/wp-cli/shell-command/pull/78
on Jan 22, 2026https://github.com/wp-cli/shell-command/issues/75#event-22210428521
Sign up for freehttps://github.com/signup?return_to=https://github.com/wp-cli/shell-command/issues/75
Sign in to commenthttps://github.com/login?return_to=https://github.com/wp-cli/shell-command/issues/75
Copilothttps://github.com/apps/copilot-swe-agent
command:shellRelated to 'shell' commandhttps://github.com/wp-cli/shell-command/issues?q=state%3Aopen%20label%3A%22command%3Ashell%22
Bughttps://github.com/wp-cli/shell-command/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.