this post was submitted on 05 Nov 2026
22 points (95.8% liked)

Linux

68697 readers
701 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

Edit2: Solved! Thank you all! 🥰 I was supposed to put quotation marks around the command argument variable/substitute within the script, as in scanimage -d [device] –format=png -p -o “$1”

Edit: turns out it's not the accented character, but the whitespace character in front of július.png, since the script doesn't accept julius.png either.

#!/bin/bash  
# name of the script is SCAN.bash  
scanimage -d [device] --format=png -p -o $1  

I have tried ' ', " " and to escape it with \

./SCAN 'anyu 1988 július.png'  
./SCAN "anyu 1988 július.png"  
./SCAN anyu\ 1988\ július.png  

But it throws argument without option. It works fine if I type it out instead of scripting.

The target language is Hungarian and I have generated the necessary locale.

you are viewing a single comment's thread
view the rest of the comments
[–] istdaslol@feddit.org 2 points 6 days ago (1 children)

It does, bash uses your locale and if the umlauts are displayed correctly it is set to utf-8 or similar. Your other optiones aren’t parsed correctly

` #!/usr/bin/env bash

filename=“$1” angle=“$2” resolution=“$3” `

[–] akunohana@piefed.blahaj.zone 1 points 6 days ago

Didn't cross my mind to put the quotes in the scrip 🤣 Thanks!