mas icon indicating copy to clipboard operation
mas copied to clipboard

🐛 [BUG]

Open brettrowberry opened this issue 3 years ago • 1 comments

Your Environment

  • mas version: 1.8.6
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): 12.2.1

mas Install Method

  • [x] brew install mas (homebrew-core)

Describe the Bug

Can't search for apps with multi-word titles.

To Reproduce

Steps to reproduce the behavior:

  1. mas search Member Tools
  2. See error Unrecognized arguments: "Tools"

Use single quotes

  1. mas search 'Member Tools'
  2. See 1549235640 AARP Perks (1.11)1549235640 AARP Perks (1.11)

Expected Behavior

Finds Member Tools app, https://apps.apple.com/us/app/member-tools/id391093033

Actual Behavior

Doesn't parse multi-word titles without quotes. Doesn't find app with quotes.

brettrowberry avatar Apr 05 '22 03:04 brettrowberry

Both of these are iOS apps, so that may be a factor. Just discovered #321.

brettrowberry avatar Apr 05 '22 03:04 brettrowberry

All shells use the space character to separate arguments. You need to either quote multiple words (as your example shows), or escape the spaces between with a backslash \

phatblat avatar Oct 04 '22 00:10 phatblat

It may be possible for mas to insert spaces between the arguments you supply before searching, however that feature would be in conflict with others such as #168 and #225

phatblat avatar Oct 04 '22 00:10 phatblat

I think this can be closed. I have verified searching for multi-word titles does work.

% mas search 'Blackmagic Disk Speed Test'
   425264550  Blackmagic Disk Speed Test (3.4.2)
   999260138  GPU Benchmark: System Test (1.2.5)

MacOS: Ventura 13.4 Mas version: 1.8.6

brandon-fryslie avatar Oct 02 '23 04:10 brandon-fryslie